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 can i bring money with android apps ?

Hy guys, how you guys bring money working with android ?

Sun Certified Programmer for Java Platform, SE 5.0 310-055.


2. About ListView and XML files

I've finished NotePad Tutorial which is in Android web-site

However, I'm not quite sure about some Code below

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="

     <ListView android:id="@+id/android:list"
        <TextView android:id="@+id/android:empty"

I've made Activity which extends ListActivity and I made a XML code

I changed <ListView android:id="@+id/android:list" ....
TO <ListView android:id="@+id/list" ...

It didn't work Why? What is different between @+id/android:list and @

web site  says "The list and empty IDs are provided for us by the
Android platform, so, we must prefix the id with android:
I don't know what the web site says


3. Any sample application in Android SDK using HTTP Class.

4. With no previous programming knowledge / experience, how do I get started creating an app?

5. IPhone/Verizon Rumor

6. How to launch SMS message edit from API

7. On screen Key board