tags:

views:

160

answers:

1

I have 3 video files each of 70 MB in my raw folder besides other audio files of few KBs. I am getting an installation error of insufficient space on the DROID while testing my app. I tried uninstalling apps and am now left with apps that are essential to the device.

What needs to be done to resolve this issue? I also wonder what will be the app size that i am allowed to upload to the android market?

Thank you.

+1  A: 

Most apps solve this by letting users download the data files from their own server - that way, you can download them to the SD card. Remember that prior to Froyo (Android 2.2), all data ended up in the very limited internal storage of the phone, so 70MB would essentially force users to remove all their other apps just to make room for yours.

EboMike
I have FROYO installed on my DROID.The available space on my phone is about 72MB now. Should i try uninstalling other apps as well?
Maxood
Did you set the target level to 8 and set up your manifest to prefer installation to external storage? In any case, I think a 70MB app is not going to cut it unless you want to restrict yourself to Froyo as your target. Downloading the assets would be better. And remember that ANdroid will create some cache files for your app, so even if your app is "just" 70MB, you'll need some more to install and run it.
EboMike
I set the target to 6 i.e. 2.0.1. I just set it to 8 or 2.2 as you said so. How can i setup my manifest file to prefer installation to external storage?Would this make any difference?
Maxood
Please read this: http://developer.android.com/guide/appendix/install-location.html
EboMike
Now this is what i'm getting in my console window after setting android:installLocation="preferExternal":[2010-09-24 02:06:56 - ABC In The Zoo] Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE[2010-09-24 02:06:56 - ABC In The Zoo] Please check logcat output for more details.[2010-09-24 02:06:57 - ABC In The Zoo] Launch canceled!
Maxood
Well, what does logcat say? Also, do you have an SD card in there? (That is NOT currently mounted to your computer via USB?)
EboMike
Yeah, that's one thing to remember when debugging; make sure you go to the notification bar and disable USB storage mode. Otherwise, you'll get exceptions any time you try to access the external storage.
kcoppock
Better still - don't use auto USB storage in the first place. It may be nice for consumers, but it's terrible if you're a developer.
EboMike