Skip to content

Instantly share code, notes, and snippets.

@uc-sja
Last active June 30, 2022 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uc-sja/34979f16afb550b53eb9c5d012380666 to your computer and use it in GitHub Desktop.
Save uc-sja/34979f16afb550b53eb9c5d012380666 to your computer and use it in GitHub Desktop.
Fileprovider
<?xml version="1.0" encoding="utf-8"?>
<paths>
// Represents files in the files/ subdirectory of your app's internal storage area.
// This subdirectory is the same as the value returned by Context.getFilesDir().
//file path will be storage/data/user/0/Android/data/{your app package}/files/.../
<files-path name="name" path="path" />
//Represents files in the root of the external storage area.
//The root path of this subdirectory is the same as the value returned by Environment.getExternalStorageDirectory().
//Will most likely be storage/emulated/0/{you app name}/.../
<external-path name="name" path="path" />
//Represents files in the root of your app's external storage area.
//The root path of this subdirectory is the same as the value returned by Context.getExternalFilesDir().
//Will most likely be Android/data/{your app package}/files/
<external-files-path name="name" path="path" />
</paths>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment