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. Porting an existing Linux device driver to the Android platform

    I think what the nature lover want is a sensor hardware module~just like
the sensors_qemu.c in the
    development/emulator/sensors ~~
    or u can get the htc_sensors.c on the android's git server.

2010/7/9 tungsys <>

> website: 

2. Using TableView with a ListView

I'd like to create a table with two rows (each containing one spanned
TextView) followed by a list of rows, each containing two TextViews.  Do
I simply create a TableRow containing a named ListView containing two
named TextViews?  If I then populate an adapter will TableView realize
that I have a sequence of TableRows?  Is it really that simple?

Jake Colman -- Android Tinkerer


3. Is there a way to find out if an app is in a folder(on the home screen)?

4. Navigation bar in an application

5. Passing an int value from one activity to another

6. get the name of the package that started a service

7. Remove Prelink