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. Does it exist an Android view equivalent to a "<select>" HTML input element

Does it exist an Android view equivalent to a "<select>" HTML input
element ?

In my application, user should fill a form.
I know that ListView can display a list of elements but I think it's
not relevant for a form.



2. target_product variable


I need to compile for MISP AU1250 but when I set TARGET_PRODUCT=au1250
I got this message: build/core/ *** No matches
for product "au1250".  Stop.

Is there any list of target product ?




3. Why app still runs during a long-press on the power key (or end call key)?

4. How to build apk for sharing resource like frame-res.apk

5. Audio Framework Volume Change

6. How to remove sms notifications in status bar

7. High performance access on static data: What is your approach?