android - List of files of saved to the internal storage -
my android application saving stats internal storage. each file name in format of "appname-currentdate"
i wondering:
- when save internal storage, there specific folder assigned app, or files saved along files other applications in same directory.
- is there way know list of files saved application internal storage
thank much.
1) depends on method use file handle. files stored in application specific directory, eg. /data/data/[your.package.name]/. files in directory readable application.
2) use getfilesdir() method in activity file handle , use listfiles() on array of file representing files in application data folder.
further reading: http://developer.android.com/guide/topics/data/data-storage.html
Comments
Post a Comment