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 -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -