Where does Android save your files? -


i'm using basic android developers code write file android system, i'm not sure app saving file. can check on phone make sure file being written , saved correctly.

here's code:

protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     try {         outputstream = openfileoutput(filename, context.mode_private);         outputstream.write(string.getbytes());         outputstream.close();     } catch (exception e) {         e.printstacktrace();     } } 

it creates file under /data/data/your.package.name/<name specify file> named test.txt /data/data/your.package.name/test.txt


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -