java - Android write text file to internal storage -


using emulator able write text file /data/local when use device, same path /data/local permission denied. tell me path of internal storage read-write , can write file there. better if achieve without rooting device.

android apps isolated 1 another, app has dedicated folder in internal storage read/write it.

you can access via

file path = environment.getdatadirectory(); 

as vary between devices.

outside app (e.g. shell, or file explorer) can't read private data folders of apps, need rooted device (as emulator) it. if want file world-readable, put in external storage.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -