Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduce apk size

Tags:

android

I am developing an android application in which there are hundreds of high quality images(512x512px to 1000x1000 px and above) and hence the apk size has become too (more than 400mb) large. So, is there a way to compress my .png images or any other way to reduce the app size. I also read about proguard but will it delete my images? Thanks in advance!

like image 249
Chinmay Dabke Avatar asked Jul 20 '26 01:07

Chinmay Dabke


2 Answers

An APK with 400 MB is really huge, so you need to compress images, use these links to compress http://www.tinypng.com http://www.compresspng.com http://www.punypng.com You could also choose to load the images from server and store it in sdcard on application launch. So your application doesn't need to store images inside itself. I recommend you to store & load images from server.

like image 138
Ajeesh Avatar answered Jul 21 '26 15:07

Ajeesh


You could try to use something like pngcrush, to reduce their file size, or you can try to store them remotely on a server and pull them down to the device on demand and cache them (it's likely that you don't need all the images at the same time)

like image 44
Michael Evans Avatar answered Jul 21 '26 14:07

Michael Evans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!