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
Related
I have an android application where there are quite a number of audio files(.mp3 format) in the raw folder of resources.But the problem it creates is that the size of my app has become very large. What are the ways which I can use to reduce the size of app. Can't I compress that folder or use other technique ?
you can minimize the size of mp3 by changing its sample rate and frequency so it will reduce its size almost 70 to 80 % but still its sound quality is good to hear
you can get mp3 compression or mp3 size reducer open source software on google
click here for software compatible with window
once you reduce your size of mp3 automatically size of your app will get reduce
also delete the all unnecessary images ,stuff,xml ,java file from application so its size will definately get reduce
The only options I see are:
increase the compression of your mp3's
load the mp3's from a different source ( via APK Expansion Files or from webserver )
I'm developing an android application that has over 111MB of mp3 files.
I need to compress these files and put them in my package (like raw folder) and after my app was installed on a device, it decompresses files to use them.
How could I do this? Is this possible?
You can reduce mp3 file size by reducing the bit rate. Reducing the bit rate will result in smaller file size but lower quality, so you have to check what works best for you. You can improve the quality by using Variable Bit Rate (VBR) instead of Constant Bit Rate (CBR).
You can do that using a software such as Audacity.
Use Super C freeware, convert to AAC will also help.
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.
I have almost finished writing my app, and i am concerned about the app size. Besides the 876KB res folder and the 1,08 MB assets, the rest of the files in the project are just source code in src (the src is about 80KB). The app can download a ~160KB file from the web. From the app info (in the app settings), says the following:
Total ............5.89MB
App ..............1.79MB
USB Storage app.. 4.09MB
Data ............12.00KB
SD Card.......... 0.00 B
The app is saved on the SD card.
The question is, is there a way to reduce that size? I have already compressed the images I am using and it seems really weird to me that with the size of the folders in the project, the app needs 6 MB of space.
Also, how come the app size is bigger when the app is in the SD card?
Consider using proguard here in your app. With latest tools, proguard is on by default.
Also, do not consider the size of app until you have obfuscated it.
ActionBarSherlock adds about 200KB to your apk size not MBs.
I want to use videos in my android application. There are 800 videos (total size 250MB), so how will I use them in android application?
Same with images 3000 images (50-60 MB)
What will I have to do if I want to use images and videos with total size as mentioned above?
If you need to have them on the
device, you'll have to download them
to the SDcard.
Another option would be streaming
them from the web.
The question is which user would download almost 300MB of media files for one application? The maximum file-size for the Android Market is 50MB. Your App will need to download them to the SDcard (like "Need for Speed").
Another thing would be compressing them, but that would depend on what you want to do with the files.