If I save a file without any path name .. e.g. "abc.txt" ... where would it be saved on the device ?
where should I look in emulator file system if to try to find a file I saved?
/data/data/your.app.package.name/files
, but note this can be device dependent so you should follow CommonsGuy's advice!
If I save a file without any path name .. e.g. "abc.txt" ... where would it be saved on the device ?
Don't do that.
Use getFilesDir()
to get at the root of your application-local file area on internal storage. Or, use openFileOutput()
, which gives you an OutputStream
to a file in the directory identified by getFilesDir()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With