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?

Nathan

-- 



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)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android 3.0 Programming Books:  http://commonsware.com/books 

-- 


Sponsored Links


Other Threads

1. Content Provider filtering query, filtering Cursor

Hi,

I got following problem, I need to use a Content Provider to read a
Database of an other App.
first I want all rows, and after analyzing the data only e.g. the rows
from _id = 1, 3 and 5.

how can I call a Content provider and select only these rows?

or is it possible to create a subset Cursor form an given Cursor?

Thanks in advance.

-- 

2. How to unabled "Clear Data" Button? in froyo

i don't want lose my user data. (Database.. properties...)
so i use the 'android:allowClearUserData="fase"   '...

in ecliar? it's was work.
in froyo? it's not work!

settings >>  applications >> manage applications >> "My app"

the "Clear Data" button is always enabled.

is it deprecated?  in froyo?   or is Bug?

how to unabled "Clear Data" Button?

-- 

3. NBA: LeBron James and Dwyane Wa de鈥檚 statistical comparison

4. Android application ideas

5. ADB Driver Not Found Windows Vista 64 - T-Mobile MyTouch3g Slide (?HTC Expresso?)

6. multiple views and asynctask...

7. Necessary to close SQLite database?