Where does a file get saved when openFileOutput is used?

android, android-sdcard, file

Solution

see this page : http://developer.android.com/reference/android/os/Environment.html You can get some path to directory.

I think, if you try to use directly `ApplicationContext.openFileOutput(filename, Context.MODE_WORLD_READABLE);`, the file will be create at the root of the phone, but I'm not sure, or in the /data.

Problem

Is it possible to know where a file which is created by ``` ApplicationContext.openFileOutput(filename, Context.MODE_WORLD_READABLE); ``` get stored? I dont need any java code to print me the path, that should be `getFileStreamPath(filename)`, i just need the default storage location for such files. i didnt find any helpful things in the javadoc of android

Original source

Related problems