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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -