How to store around 12MB of MP3 files in res/raw folder of my Android 2.3 Project?
I am developing a small application in Android 2.3 using Eclipse 3.4开发者_如何学JAVA IDE, I wish to store more than 200 mp3 files in the res/raw folder of my project. But Wen I started the Android Emulator,it stop working by showing this message in console:
"INSTALL_FAILED_INSUFFICIENT_STORAGE"
Please tell me a way out from this problem
I think the error is explicit enough. The app is too large in size for the internal storage. I think it's time to redesign your app. For instance you can download the mp3 file from the network on demand and then save it to the sdcard.
BTW, if you plan to support just Android version > 2.2 you can add android:installLocation="preferExternal"
into your manifest file and this should rid the problem
Decreate the bit rate of mp3 files! I think 8bit could be fine if you predict that a user will not listen your mp3s via external speaker.
If you have files that will be listened via external speaker, than decrease bit rate in all files except in those.
If you cannot use any of these actions, then you made a big mistake in an application design.
PS. if it's not a secret, could you tell me what kind of app needs 200 mp3 files?
Do you have to use MP3? Android docs suggest you should use OGG where possible.
The Installation of this app was failed due to the insufficient storage space available in the Android Emulator.
And this was removed when I run the app in a new Emulator with sufficient amount of memory space available for successful installation of the apps.
Now this app is successfully running in the new Emulator. Thanks for your support.
精彩评论