Tuesday, June 21, 2011

[android-developers] Queries on Internal Storage - device space

Hello,

I explored storing temp/supporting files on Internal storage i.e.
SharedPrefs (private to app) and Internal Storage of device. Now, when
i try to create a file on Internal Storage, it by default creates and
stores file on </data/data/<app_home>/files/ . My intent was to store
a file on some centrally located area i.e some device storage path
which is accessible to all applications, and whose file permissions
can be restricted using different modes like we have as -
MODE_PRIVATE, MODE_WORLD_READ,etc.

Quesn is : Is there a way to create a file on such centralized storage
location (if it exists on android device) so that it is accessible to
multiple apps ? Or provide a path while creating file using

FileOutputStream fos = openFileOutput(FILENAME, Context.<MODE>);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment