Regarding memory size of android application - android

Hei, I had developed an android application by using phone-gap framework. The memory size of .apk file is 350 kb. After installation, the usage of memory by the application is 2.00 mb. I want to reduce the usage of memory after installation,actually that is the requirement. On surfing Google, I worked on Images and images are of required pixels only. Is there any alternative to reduce the memory size of application .... thanks in advance.

Your project may have files that were compressed while generating apk file for you. These files are decompressed when you install the application.
Try to reduce the size of the files in your source code.

Related

How do I make my app use less storage?

I am making a launcher. Currently it takes up about 20 mb. What can I use to drop it to at most 9 mb?
Compress all your images with pngquant. It will reduce the size significantly atleast 30% i think.
Did you try to profile your apk?
I recommend you to figure out the problem by profiling apk.
Android Studio (2.2 Preview 1) has nice APK Analyzer.
http://android-developers.blogspot.jp/2016/05/android-studio-22-preview-new-ui.html
If the problem is classes.dex size, let's try Proguard to reduce the java classes.
https://developer.android.com/studio/build/shrink-code.html

Unity APK size much higher than Resources used in it?

I am working with unity 4.0 and my 2d game is almost completed, and ready to upload on Google Play Store. But the problem is that the APK size is very high. My total size of all Assets is 10.7 MB and the final APK size is 17.0 MB. So I can't understand how it happens.
Any help will be appreciated.
The APK does not merely consist of the assets. The Unity player is compiled into the resulting APK and explains the size of the APK being larger than the pure assets alone.
Check out this article in Unity's documentation.
You can reduce the size of the apk by doing:
Reducing the size of textures and compressing it
Reducing the poly count and compressing the meshes and animations
Minimizing the use of external imports
Using .NET subset when compiling

How to make android apps of low size?

I was doing a little project thing for my school...
I made a simple calculator app...with simple mathematics operations...
And when the apk file is created and installed, it was consuming the memory space of more than 700 kb in the phone.
While in the android market(play store), there are just similar apps which are of low sizes and are taking memory space of less than 500. I was creating app in eclipse...
Will somebody plz help me out with this that how they do make apps of simple lower size.??
The smallest APK I created is ~35kB. Size increases dramatically with the included assets. Check the size of your /res, /assets and, if you have it, /raw folders. The APK size will be larger than those three combined. Further, any included lib counts, and adds bulk, even (and especially) the compatibility library, if you use it.
If you're having lot of graphic assets, then you should probably look at using 9-patches. They save a lot of memory.
Please elaborate your question. When you say memory, are you referring to the RAM OR the actual storage memory ?
If you are referring to storage memory...
The storage memory depends on how big your application is. For e.g. IF you have too many images of large size, then app size will increase.
By the way, 700K is not really too much. You are OK.

How to reduce my application size

I have an application 54 MB in size, of which 53 MB is an mp3 file in my res folder.
Due to the large application size , I am not able to run the application in the emulator. Getting error like "com.android.ddmlib.SyncException: No space left on device", "INSTALL_FAILED_CONTAINER_ERROR]", " the user data image is used by another emulator".
I increased the internal memory of my avd by setting "-partion-size 2047" and sometimes its running but most of time getting I'm getting the same problem.
Is it possible to reduce the mp3 file size?
Is there any another solution? please help.
What I see in many games to reduce the initial size is put all the "heavy" data outside the main apk and download it on the first run.
You have an example application of that here
How about having the application download the mp3 files to SD-card after the application have been installed?
Else, you could try and do some compression on the audio files.
Re-encoding the MP3 Files with a lower bitrate will reduce their size.
you should reduce the size of your MP3 file using a software like MP3 Resizer :downloadable here

how drawables resources stored on device

guys, I wonder if you put images for each density type (low/medium/high) and there are quite a few of them, won't it increase the size of application footprint on internal memory?
I would hope that android will put only needed resource file from apk to the actual application folder. Can somebody confirm that?
It will increase the size of the .apk, because those images need to be in the .apk. It will not increase the RAM footprint of the app at runtime. When an app is installed it is kept as its original .apk, so the storage space needed will be basically the size of your .apk.

Categories

Resources