问题
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