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. EditText.onKeyUp() doesn't catch all keys

Dear all,

I'm writing a little dictionary application for Android 1.5, and I'd
like to catch the user's keystrokes in an EditText instance. The
following code recognizes all keys, which are typed in in the Android
emulator:

  new EditText(this) {
    @Override
    public boolean onKeyUp(final int key, final KeyEvent event) {
      Log.i("Key:", Integer.toString(key));
    }
  };

..which is fine! But I open and use the soft keyboard, most input
(except for e.g. the ENTER key) is ignored. Could anyone tell me
what's the best/easiest way to identify and process these user inputs?

Thanks for your attention,
Christian


--~--~---------~--~----~------------~-------~--~----~

2. remove prompt on outgoing sms

Hi....

is it possible to remove the prompt which appears on sending outgoing
sms asking for permission to send the sms?

Thanks in Advance
Nemat
--~--~---------~--~----~------------~-------~--~----~

3. Notification - Getting Pending Notifications

4. Alarm Manager - Cancelling all alarms created by application

5. WVGA800 and WVGA854 for games

6. How to do some init operation immediately after install

7. How can I can a transparent