简体   繁体   中英

Android APK Expansion File questions

I figured since my app is 114 megs I should use an expansion apk.

If I throw all these vids into the raw folder of my project it reaches that size.

With an expansion APK could I get it to download all those videos and throw it into the raw folder?

Create a secondary Zip file and use it to store the video files without any additional compression (using zip -0 from the command line). There is a library provided (apkx_zip_file) that will allow you to get an asset file descriptor from the Zip file. From this, you can pass the offset and length into the MediaPlayer. If you need to use the VideoView, you can also set up your own content provider using APEZProvider, which is also in the library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM