Private Storage with App2sd.

by Nathan » Fri, 20 May 2011 05:05:32 GMT

Sponsored Links
 I found this message about App Install location:

"The .apk file is saved on the external storage, but all private user
data, databases, optimized .dex files, and extracted native code are
saved on the internal device memory"

Based on this, I believe it is a bad idea to place anything large
(meaning more than a few megabytes), as a private storage file.

ie, if I call

openFileOutput(FILENAME, Context.MODE_PRIVATE);

It should be only for little files. If a user moves their app to the
SD Card, it doesn't really give them any more room for these files.

For anything else, I should plan on it being on the storage card, and
open to the public.

Am I right?



Re: Private Storage with App2sd.

by Mark Murphy » Fri, 20 May 2011 05:11:23 GMT


Yes. IOW, having the app installed on external storage has no effect
on files created on openFileOutput().

Mark Murphy (a Commons Guy)  |  | 

Android 3.0 Programming Books: 


Sponsored Links

Other Threads

1. How to increase FPS (now ~20, desired ~40-50)

Hi Andre,

you should definitely read the "Designing for Performance" document

I think you might speed up your onDraw() method a little bit this way,
though I think you might not reach more than 30 or 35 FPS.
At first you should eliminate all function calls in your onDraw()
method. I know this is bad code style, but it really is faster. I am
drawing some bitmaps for a project here this way.
Second, you should create local variables for all attributes you use
more than once.
Third and most importantly: Remove unnecessary code. For example, you
call System.currentTimeMillis() relatively often (I think you used
this code for performance measuring, but anyway).

And last but not least: Android comes with a profiler. Try to use
it. :-)


Marc Reichelt   ||

> }

2. no sound from music players even when alsa is fully functional


I am trying to get the music applications on android (Eclair) (Beagle)
to play mp3, the applications show that the song is being played but
there is no sound output, also we have installed aplay and we able to
play wav files, is there any changes required to get intergrate alsa
with android audio.

Rahul Soparkar


3. Problem while sending unicode character via SMS

4. Notification sound from file inside the app package ?

5. Timer and Timer Task

6. program's offline installation

7. adding voice search