来自 getFilesDir() 的 FileProvider

jel*_*c98 7 xml android file android-context android-fileprovider

Context.getFilesDir() 对应的 XML 是什么?

我当前的 XML:

<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <files-path name="internal" path="." />
</paths>
Run Code Online (Sandbox Code Playgroud)

文件创建:

File video = new File(getFilesDir(), "movie.mp4");
videoUri = FileProvider.getUriForFile(this, "my.package.name.provider", video);
Run Code Online (Sandbox Code Playgroud)

Com*_*are 5

从服务文件的XMLgetFilesDir()通过FileProvider