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. Strange action from a webview

I have an app that uses a webview that displays address information in
a list format. Occasionally, when scrolling through the data, one of
the address will highlight and start the maps app. The map app then
geocodes the address and it shows up with an infowindow. Slick, but ?
I have nothing in the app that would fire off an intent to start the
maps, it seems to do it all on its own.

Is this a feature, but of does my unit have a mind of its own?

Device: Google Ion
OS: 1.6

The app isn't on the market yet, it's in the preliminary testing
phase.

-John Coryat

"Radar Now!"

"What Zip Code?"

2. How to used float variables in Drivers?

Hi all,
     I am working on driver,
     How to used float variables in diver code? How to do mathematical
calculation in driver code?
     If I add float variables in my driver code following error occured:

ERROR: "__fixdfsi" [drivers/my_driver/mydriver.ko] undefined!
ERROR: "__divdf3" [drivers/my_driver/mydriver.ko] undefined!
ERROR: "__floatsidf" [drivers/my_driver/mydriver.ko] undefined!






Waiting for reply...

Thanks,
Sachin Bhangale

3. 绛斿: Issue on ril communica tion with external modem

4. GalleryView memory issue / Alternatives

5. Client / Server, JBoss or Apache Tomcat

6. abd error

7. Take a screen shot of device?