I've used the following as my research :
http://developer.android.com/guide/practices/screens_support.html
Too large APK due to multiple densities and screens sizes?
I'm currently working on getting my application to support multiple screen sizes. At the moment I don't have the following in place:
- Separate layout files for different screen sizes
- Separate images in the relevant image-density folders (ldpi, mdpi, hdpi, xhdpi).
Other info:
- All images are .png
- I do want to support large screen sizes like tablets
- I do not wish to support anything below this size - 320x480
Even though I don't have everything in place yet, my app is highly customized(in terms of graphics) - and is now a little over 4 mb.(.apk size)
If I do add separate layout files, and images - the app .apk file size will probably explode.
Question:
How can I get around this and keep the .apk file size to a minimum?
Idea's I've come up with so far:
- Bitmap sampling - and creating an image loader
- Downloading images from the net - I wish to avoid doing this unless there's no other option.
- Converting some files to .jpeg files - Still a little unclear on how that works.
- Using .9.patch image files? I believe this makes layout design easier.. but not sure if I could use that to save on .apk size