java - Figuring out where Android stores files -
i writing file in application. want find file check file has been written correctly (and can access file via web view). here code using write file:
try { fileoutputstream fos = openfileoutput("rules.txt", context.mode_private); fos.write(content.getbytes()); fos.close(); } grab (exception e) { e.printstacktrace(); }
and utilize directory of file:
getfilesdir()
however string provides not available directory on device (hidden files shown).
any help appreciated!
android writes internal files /data/data/<your bundle name>/files/<filename>
. cannot access via file browser or unless rooted.
java android file
No comments:
Post a Comment