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. Galaxy S Rooted

http://www.androidpolice.com/2010/06/22/samsung-galaxy-s-already-rooted/
baca warning threadnya ;)

-- 
"Indonesian Android Community [id-android]" 

2. playing simple tones

Hi,

Is it possible to play simple tones in Android? Something like
playTone(frequence, timeInMS).

thanks

    guich

-- 

3. SQlite Security

4. ListView Groups? Please

5. Is the ADP2 dual-core or single-core? Thank you very much.

6. Web-browsing issue on OMAP device

7. Mod: Gathering ID-Android with HTC Indonesia (Sabtu, 26 Juni 2010)