While developing an Android app what format of sound/image should i should be using so that i can control the overall size of the app after completion.
Asked
Active
Viewed 4,340 times
3 Answers
1
Take a look at Supported Media Formats.
My choice would be:
Images: go with JPG for compression or PNG for quality and transparency support.
Audio: go with MP3-VBR (variable bit rate) for compression and quality.
The size of your file will be greatly affected by compression level. At some point, if you compress too much you will see/hear artifacts. The acceptable level of compression is subjective and really depends on the input data (image or audio). You should be testing different levels of compression to see what works.

Peter Knego
- 79,991
- 11
- 123
- 154
1
here is a link to all the media types supported by Android.
For sound I would probably use a low-bitrate .mp3
or a .midi
and for images either a compressed .jpg
or .gif

Grace B
- 1,386
- 11
- 30
-
Thanks all for the inputs. I would like to know if i use mp3 as my sound file which is of 2 MB, will it again added to my app size as 2MB or will it compress. – user1220523 Feb 20 '12 at 09:34
-
I don't think Android compresses it, so you would have to lower the actual mp3's bitrate / record with a low one. I don't know what OS you have, but in Windows you can check a mp3's bitrate by right clicking it, clicking `Properties` then `Details` – Grace B Feb 20 '12 at 10:20