新创建的文件路径 [英] New file created path
问题描述
我指的是这个 http://developer.android .COM /引导/主题/数据/数据storage.html#filesInternal 为内存中写文件。我在哪里可以检查该文件?举一个例子导向code:
I was referring to this http://developer.android.com/guide/topics/data/data-storage.html#filesInternal for write file in internal memory. Where do I check the file? For an example the guide code:
String FILENAME = "hello_file";
String string = "hello world!";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
我在哪里去,并检查文件hello_file,自导并没有给出路径?
Where do I go and check the file hello_file, since the guide didn't give the path?
推荐答案
如果您已经创建了 EXTERNAL_STORAGE
,那么你可以通过检查相同的SD卡文件浏览通过SD卡。或检查在到/ mnt / SD卡/...
在文件浏览器选项卡。
If you have created the file in the EXTERNAL_STORAGE
, then you can check the same in the sdcard by browsing through the sdcard. Or check in the /mnt/sdcard/...
in the File explorer tab.
如果您已经创建了 INTERNAL_STORAGE
,那么你可以在检查/数据/数据...
路径。但是,你将无法浏览 /数据/数据
路径,如果你的手机没有根。
If you have created the file in the INTERNAL_STORAGE
then you can check in the /data/data...
path. But you wont be able to browse /data/data
path if your phone is not rooted.
这篇关于新创建的文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!