Goran
Goran

Reputation: 1239

How can i decrease android application size?

So i need to know, how can i decrease my app size. It is 1,4 MB and it is too much for it's funcionality. So i wonder what parts of application is adding most to app size?

Upvotes: 2

Views: 2142

Answers (4)

devconsole
devconsole

Reputation: 7925

APK files are just ZIP files. Use a zip utility that shows you the compressed size of each entry (like unzip -v if you have Linux or Cygwin) to see what file or files use up most of the space. The file classes.dex contains the compiled Java code of your project, res contains your images and other resources, resources.arsc are compiled resources, such as strings.

Upvotes: 2

Iulia Barbu
Iulia Barbu

Reputation: 1530

use Window-> Run Android Lint for your project. this will show you unusefull things (strings, drawables....) and other issues in your project. (you can even configure which ones are warnings/errors going Preferences->Android->Lint error checking)

hope it help's!

Upvotes: 4

Michael Allen
Michael Allen

Reputation: 5838

Graphics are the biggest influence to file size. Try PNGCrush a pretty good lib to reduce the file size of png files.

Upvotes: 3

Konstantin Pribluda
Konstantin Pribluda

Reputation: 12367

Most probable causes are:

  • images
  • other assets
  • unnecessary third party code

Upvotes: 3

Related Questions