data in getFilesDir() get deleted when the application is uninstalled, not closed. It is kept "along the time", as long as the app is installed.
That said, please consider that internal storage space is limited, and /should/ not exceed 1Mb per app IIRC. Therefore, for downloading images, etc.., you'd better store files on the SD Card, especially in Context.getExternalFilesDir(). Olivier On 12/08/2010 05:41 PM, gato chlr wrote: > it seems that the application related data is stored in > /data/data/android.files/files , you can get this directory using > getFilesDir() from your Activity. Also it looks like the application > related data is created when you start the application, and it is > deleted when you close the application, so if i save a file in > getFilesDir() and close the application, when another one tries to > retrieve the saved file it will not be there. please tell me if i'm > wrong. > > well the question is : > > where should i put the files that i want to save along the time (like > a cache) using only the internal storage? > > for example i want to download some images and save them in a > cacheImages directory, and be able to use the images later. > > I'm thinking to put those files in /tmp , but not sure. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

