Reputation: 99
i want to shrink the size of my apk file because in my application lots of images there. and because of the image my apk file size is too large..
Upvotes: 2
Views: 3371
Reputation: 34370
Apk is already in compressed form but by following given points you may reduce it to some extent.
Jpeg images
to PNG
. But it is even better to put your image on Web and retrieve them using AsyncTask.java.classes
and xml
from the project.Upvotes: 0
Reputation: 17613
In images you have no way to reduce the size without reducing the size of the images themselves but you can do one of 2 things:
The code you can reduce by using proguard: Enabling ProGuard in Eclipse for Android
Upvotes: 2
Reputation: 1969
If you have many images you can exclude them from the *.apk, download them at first run and save on sdcard
Upvotes: 0
Reputation: 56727
An APK file is basically a ZIP file. There's no way of reducing its size any further. Instead, you should check whether you can
If neither 1. or 2. are possible, I guess you just have to accept the APK size as it is.
Upvotes: 2