Skip to content Skip to sidebar Skip to footer

Android Assets No Value Read?

AssetManager assets = myContext.getAssets(); String[] files = assets.list('MyFolder'); InputStream myInput = assets.open('MyFolder/' + files[0]); in

Solution 1:

Rename the file to XXXXXX.png so that it is not compressed, then it can be copied over.

Solution 2:

You cannot put a 10MB file inside an APK. You will need to slice that into 10 1MB files. Better yet, distribute the database in some other way, such as downloading it to the SD card on the first run of the application. Many users will be unable to install your APK if it is that large.

Post a Comment for "Android Assets No Value Read?"