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)
| 归档时间: |
|
| 查看次数: |
1294 次 |
| 最近记录: |