How to extract .obb file in android to the assets directory?

拟墨画扇 提交于 2019-12-23 01:04:46

问题


I am using libraries provided by the android sdk for apk expansion file to download the obb file, however I am not sure how to extract these files to the correct directory or if it is even possible?

The .obb file downloads correctly, and I can read the entire directory, however once I try and use any of the resources inside the zipped assets folder it doesnt find it. I have followed this guide (which is basically the same everywhere: http://ankitthakkar90.blogspot.co.za/2013/01/apk-expansion-files-in-android-with.html ) But I cant find where (or if its even necessary) to manually extract the .obb file? When the obb file is downloaded, it copies the entire .obb file to the /data directory, instead of extracting all the content.

If someone could just point me in the right direction, or explain to me what I am doing wrong it would help alot.

Structure of .obb file If I understand correctly the APKExpansionSupport is used to work with files inside the .obb file directory? But how do I extract the assets folders contents to my projects assets folder?

Thanx!

来源:https://stackoverflow.com/questions/43934743/how-to-extract-obb-file-in-android-to-the-assets-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!