R.N
R.N

Reputation: 13

what am I doing to reduce the apk size in eclipse?

I have a lot of picture in my project and I don't delete My Picture because i need them, so my application size is very large (over than 100Mb) could you help me what am I doing to reduce the apk size in eclipse?

Upvotes: 0

Views: 227

Answers (5)

Ashish Agrawal
Ashish Agrawal

Reputation: 1977

Please check your resources folder to check unused images and drawables

use image format JPG in comparison to PNG

Use progurad to obfuscate the code and it will reduce the apk size also

check RAW and assets folder to check unused stuff

Upvotes: 0

Ganpat Kaliya
Ganpat Kaliya

Reputation: 898

Convert all your images into .jpg which is in .png. It will reduce some size.

Upvotes: 0

Vipul Asri
Vipul Asri

Reputation: 9213

1: You can compress your images in resources with best Online Compression Tools i.e Tinypng.

2: You can also generate 9 Patch Images.

3: Try using abiFilters for reducing your apk size.

Upvotes: 1

Amarjit
Amarjit

Reputation: 4357

If your apk size is 100 mb it is very big.

One thing please enable proguard in your application. You are using eclipse

then please uncomment

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt line

from project.properties file.

Second you can use apk expansion technique for that.

Here is one more tutorial for that

http://ankitthakkar90.blogspot.in/2013/01/apk-expansion-files-in-android-with.html

Upvotes: 1

Rahmat Aryanto
Rahmat Aryanto

Reputation: 28

you can compress the .jpg files as much as possible, this should greatly reduce the size of your .apk file. A tool such as Paint.NET which is free should help you do this. It has great resizing options.

Upvotes: 0

Related Questions