Directory to store files

by LD » Mon, 27 Apr 2009 16:23:38 GMT

Sponsored Links

can anybody advice what is the recommended directory to store files
generated by your application: audio files, video files or some

If the phone contains SD card, it is clear that files should be saved
there, but if there is no any external storage. where would you
recommend to save to?



Directory to store files

by Odessa Silverberg » Tue, 28 Apr 2009 22:15:56 GMT

 Depends what you're going to save there. If it's some vital data to
the application to work (i.e. SQLite Database, Preferences, etc.) then
you have to save them in your applications directory on the phone.

If it's some downloaded files, MP3s, Videos etc. then you can save it
on the SD card. The home directory of an app is /data/data/
<yourappspackangename>/ but you should use the context instead of
absolute path names.


Sponsored Links

Other Threads

1. How to develop more than 20 timer parallely..

the cupcake C library already supports real-time timers through
real-time signals are a different thing and they are not currently

For the record, with other C libraries, not all of SIGRTMIN .. SIGRTMAX is
available to application-defined purposes.
The implementation usually reserves a few signals for its own use. Which one
exactly depends on the C library you're
using, so things aren't exactly too portable here.


2. choiceMode & focusableInTouchMode & focusable

The context:
I want to have a ListView that wouldn't receive focus (e.g. won't
highlight row when user touches it). Yet each row widget has it's own
Here's what I specify in layout xml:
android:choiceMode="none" android:focusableInTouchMode="false"
The ListView still behaves exactly the same.
Could someone plz explain
a) the interrelation between the three
b) what's the right way to create a ListView that doesn't receive


3. Launching activity within an apk file thorough intent

4. setChoiceMode(), getSelectedItemPosition() & inconsistent behaviour

5. How can I reuse layout.xml?

6. A thread useful for whole community - Reply with all working OpenGL ES Extension functions

7. Integrating my external library