Sunday, May 22, 2011

I'm going to tackle the space race in this post. First, I've been getting warning messages about lack of space. So, how can I look at this on my Nexus one?

These are the questions I need answered:

How much space is being used on storage on the phone's regular, internal memory?
How much space is available?
Where are the .apk files stored?
Are they unzipped? If so, where is that data stored?
How much memory is available on the SD card in total?
How much information is being stored on the SD card?
How much ram/memory do I have?

Let's look at settings.

SD Card: Total space 14.81 GB
Available space: 13.81 GB.

Thats good.

Internal storage: Available space: 5.91 MB
So, how much total space? I'll google it.
ok, on the nexus one, there's 512 MB, 180 or 220 available at the start depending on which post you read.

So with the 5.91, I've used up most of it.

Then there is this comment:

I've installed APPS2SD, and it calculates my total storage as roughly 220MB?

Here's one other thing to tackle - this message when I install my app:

INSTALL_FAILED_INSUFFICIENT_STORAGE

This post addresses it:

http://stackoverflow.com/questions/4709137/solution-android-install-failed-insufficient-storage-error

android:installLocation="preferExternal"

e.g.

package="com.andrewsmith.android.darkness"
android:installLocation="preferExternal"

Let's delete the app and rerun.

Hmm...my app is taking up 12.29 MB? Ouch. Is it the sound files, or the database file, which is copied to SQLlite, or all 3? Or maybe it doesn't even include the sound files, which I installed manually. And are the sound files on the SD card?

The application is 4.61 MB; the data is 7.68 MB.

Ok, I just noticed that on the bottom of the manage apps display, it shows the internal storage on the bottom. Right now, it's showing 178 MB used, 18 free. So, it looks like I have a total available for *me* to use of 196 out of the 512, which is consistent with info at the start of this blog entry.

There's also a tab for SD card, which shows the apps on there

But, the "preferExternal" doesn't seem to work. I'm still getting the insufficient storage error. Well, let's clean up some more apps.

Ok, there we go, it's running. But, the app didn't install on the SD card.

It seems it may not be possible, see:

http://stackoverflow.com/questions/3584297/installing-application-on-sd-card-in-android-sdk-2-2

No comments:

Post a Comment