【发布时间】:2015-04-22 12:46:34
【问题描述】:
我想在我的 android 应用程序上查看带有 textView 的“abc.txt”路径。我该怎么做?
OutputStreamWriter out = new OutputStreamWriter(openFileOutput("abc.txt", Context.MODE_WORLD_READABLE));
BufferedWriter bf = new BufferedWriter(out);
bf.write("hello world");
bf.close();
编辑:形状像路径; emulated/legancy/android/data/com.hayro.project1/files/abc.txt 或其他东西。
【问题讨论】:
-
根据您最近的编辑,您似乎正在模拟器上运行,并且想查看运行模拟器的系统上的文件路径?假设文件甚至是在系统上创建的(我不知道),你不知道那个模拟器系统的根在哪里吗?