문제

I've uploaded my first android app to the market, it contains some sounds, some images and some gallery projects. That makes the project size almost 9.5MB. i've used mp3 and png formats for sound and images respectively. I exported the project by right click to project -> Android Tools -> Export signed application .. and the process goes on. Now when user downloads the app, it expands after installation, and the size exceeds to 24MB. Also it has some bugs which can be seen in the below picture:

enter image description here

What are the issues ?? Thanks in advance..

도움이 되었습니까?

해결책

Your application can't be moved to the SD-card, because you have to explicitly enable that first. To do so, use the android:installLocation-attribute in the <manifest>-tag of your Android Manifest. Also see: How to enable app being moved to sdcard (and support android < 2.2 still)?


For the "expanding after installation"-part: Have you checked the size if your (uncompressed) application on your dev-machine? You can extract the build .apk-file with 7zip (for example) to see what size it becomes.

To make Android optimize certain pieces of binary assets (for example your PNG-files), put them in the /res/XXX-subfolders rather then the older /assets-folder (because Android will optimize those):

Bitmap files may be automatically optimized with lossless image compression by the aapt tool during the build process. [...]

Source


As the last point, your applications "Clear Data"-button is not activated, because you don't seem to have any application-data.

The "application data" does not include any binary resources your application brings with it. It does simply remove any data which is stored on the Internal Storage for your application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top