FileProvider from getFilesDir()

android, android-context, android-fileprovider, file, xml

Solution

That is the XML for serving files from `getFilesDir()` through `FileProvider`.

Problem

What is the corresponding XML for Context.getFilesDir()? My current XML: ``` <paths xmlns:android="http://schemas.android.com/apk/res/android"> <files-path name="internal" path="." /> </paths> ``` File creation: ``` File video = new File(getFilesDir(), "movie.mp4"); videoUri = FileProvider.getUriForFile(this, "my.package.name.provider", video); ```

Original source