Directory to store files

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


Sponsored Links
 Hello,

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

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?

Thanks

--~--~---------~--~----~------------~-------~--~----~



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. Updating from Android 1.5 Pre to 1.5 Release

Pardon me if this has been asked but is there anything specific about 
updating from Android 1.5 Pre to 1.5 Release?  Or is it just like 
updating from any other update?

Brian Conrad
JyotishTools.com


--~--~---------~--~----~------------~-------~--~----~

2. Android from archive

Hi,

I would like to get previous version of Android source code (not
cupcake), is it possible to pull it out from repository?

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. SSLContext

4. Problem with tabs and focus

5. Android 1.5 is out for ADP!!

6. Floating help doesn't work with 0.9 plugin?

7. How to enable Overlay features in Android