Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compress APK for smaller file size

The apk file size for my app is quite big. Is it possible to reduce the file size by using better compression level or different compression engine such as lzma (https://software.intel.com/en-us/android/articles/native-library-compression-sdk-for-android-apps)?

like image 209
user1995781 Avatar asked Oct 26 '15 14:10

user1995781


1 Answers

To simply answer your question:
Yes, use lzma.

Okay, now some other recommendations.

  1. Build in release mode. This is very important, as the app size when built in debug mode can be a lot bigger than when built in release mode.
  2. Compress your images. Often when making an app you don't really look at the size of images, and they usually tend to be the main issue concerning size. Simply opening them in, let's say paint.net, and saving them again with lower quality can help a lot.
  3. Compress your audio files. Load them up in audacity and export them as MP3 with lower quality.

These are some small recommendations of mine. If you need your apk to be smaller still, I'd suggest trying google

like image 65
Daniël van den Berg Avatar answered Sep 28 '22 09:09

Daniël van den Berg