哪里是用来openFileOutput当一个文件被保存? [英] Where does a file get saved when openFileOutput is used?
问题描述
是否有可能知道这是由
Is it possible to know where a file which is created by
ApplicationContext.openFileOutput(filename, Context.MODE_WORLD_READABLE);
获取存储?我不需要任何Java code打印我的道路,这应该是 getFileStreamPath(文件名)
,我只是需要这样的文件的默认存储位置。我没有发现任何有用的东西的Android的javadoc
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
推荐答案
看到这个页面:的 http://developer.android.com/reference/android/os/Environment.html
你可以得到一些目录的路径。
see this page : http://developer.android.com/reference/android/os/Environment.html You can get some path to directory.
我想,如果你试图直接使用 ApplicationContext.openFileOutput(文件名,Context.MODE_WORLD_READABLE);
,该文件将创建在手机的根源,但我不知道,或在/数据。
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.
这篇关于哪里是用来openFileOutput当一个文件被保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!