Search code examples
javaandroidresourcesapkbundle

Android APK with large resource files


I am developing OCR application and it has large size of resources which are copy from Computer directory into app folder using gradle build file. But it is generating very large size apk when im generating apk. What is the workaround I have to do for testing purpose when I install apk manually on my device through file storage and later for google play store.


Solution

  • The way you formatted your question, the answers you will get will be opinion based.

    IMO:

    During Developement: Transfer the recourses you need from your pc to the device's external storage. (I.E. in downloads folder or something similar. I am not talking about any SD here.). This will be a time saver as you won't need to transfer these files everytime you build and re-run your app.

    During Production: I would suggest to not include the resources in your apk at all to achieve a small app size. Have the recourses reside on some server and implement some logic where the user downloads only what he needs when/if he needs it.