Solution: Android INSTALL_FAILED_INSUFFICIENT_STORAGE error

by Andrew Smith » Mon, 17 Jan 2011 08:55:56 GMT


Sponsored Links
 The INSTALL_FAILED_INSUFFICIENT_STORAGE error is the bane of every
Android developer's life. It happens regardless of app size, or how
much storage is available. Rebooting the target device fixes the
problem briefly, but it soon comes back. There are hundreds (if not
thousands) of message board posts from people asking why the problem
occurs, but the folks at Google are frustratingly silent on the issue.

There is a simple workaround. If your test device is running Android
2.2 or later then add the "android:installLocation" attribute to your
application's manifest file, with the value "preferExternal". This
will force the app to be installed on the device's external storage,
such as a phone's SD card.

For example:

  <manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
    package="com.andrewsmith.android.darkness"
    android:installLocation="preferExternal"

This is more of a band-aid than a fix, and it may not be ideal if you
want your finished app to install on the device's internal memory. But
it will at least make the development process a lot less frustrating.

-- 



Re: Solution: Android INSTALL_FAILED_INSUFFICIENT_STORAGE error

by Zsolt Vasvari » Mon, 17 Jan 2011 09:17:10 GMT


 That not a solution or even a band aid:  I absolutely wouldn't want my
app to be installed on the SD card by default due to its use of
widgets and it being a BOOT_COMPLETED receiver.




-- 


Sponsored Links


Re: Solution: Android INSTALL_FAILED_INSUFFICIENT_STORAGE error

by Andrew Smith » Mon, 17 Jan 2011 09:43:16 GMT


 I'm sure there will be other apps like yours for which this is
unsuitable. But it is helpful for someone developing an app such as a
game, news reader, email client, video player, etc.

Perhaps you can suggest a solution suitable for apps such as yours?







-- 



Re: Solution: Android INSTALL_FAILED_INSUFFICIENT_STORAGE error

by Zsolt Vasvari » Mon, 17 Jan 2011 09:46:40 GMT


 > Perhaps you can suggest a solution suitable for apps such as yours?

Wish I could...

I only spoke in the context of my app, I understand it's a reasonable
workaround for some apps.

-- 



Other Threads

1. Installing android SDK

When I run "SDK Setup.exe", it gives me the following error when
trying to refresh sources:


Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml,
reason: HTTPS SSL error. You might want to force download through HTTP
in the settings.


I do as it says and enable force http, but still get the same error.
Does this have to do with my http server/proxy settings? In the
settings tab, they are blank.

I'm running Windows 7. However I did try to run the installer under
administrator mode, and in compatability mode (which shouldn't be
necessary, Google supports vista).

Thanks a ton!

2. moving Views and View.getWidth(), getHeight(), etc..

I am working on an app that requires widgets to be repositioned at
runtime. The docs say getWidth() should return the width of View at
runtime but the only value  getWidth() returns is 0. Can someone point
me in the right direction on how to get the dimensions of a view at
runtime?

3. No actions in intent filter at /data/app/ApiDemos.apk

4. Pretty code program (for all developers)...

5. Simulating accelerometer events natively?

6. Best way to launch Messaging app via intent

7. Plz post "Hello, DatePicker" code