【发布时间】:2017-10-03 03:16:13
【问题描述】:
Context.getFilesDir()对应的XML是什么?
我当前的 XML:
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<files-path name="internal" path="." />
</paths>
文件创建:
File video = new File(getFilesDir(), "movie.mp4");
videoUri = FileProvider.getUriForFile(this, "my.package.name.provider", video);
【问题讨论】:
-
“东西”。改为“内部”。
-
什么是“。”在路径中是什么意思?
-
@Rohit 代表当前工作目录。
标签: android xml file android-context android-fileprovider