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. Getting FileNotFound Exception when using FileReader

I am trying to read data from a text file using FileReader.
The problem i am facing is, everytime i run my code on the AVD, i see
an error in LogCat with FileNotFound expcetion.

I have placed the file in res\raw folder.

Here is a snippet of my code.

try{


                FileReader fr = new FileReader("4ltrwrds");
                }
        catch(FileNotFoundException e) {
                System.out.println("File not Found");
                System.exit(0);
        }

I am using eclipse and get this error when i run the project using the
AVD.

However i have the same code in a different project and it runs fine.

-- 

2. Extremely Simple Question

Here goes:


I have a very simple listview going on. The list just consists of
strings, when you click the string it opens a new activity blah blah.
Here's the problem, I enabled settextfilter and while it did filter
the list, when you click the result, it always performs the action of
the string located at zero, and not the one it is supposed to.

-- 

3. ListView refresh in ListActivity

4. ListView and CheckedTextView questions - help me, thanks!!!!

5. Implementing Recovery Mode in Android

6. Hebrew Fonts in Froyo?

7. Poor roaming performance ! Is it an Android bug ?