Shows simple usage of FileProvider to share a private thumbnail across process boundaries. Also serves as sample code for javadoc on FileProvider. Bug: 7005318 Change-Id: I0ca12977a3832c7c2ac1c254d411a547ffee0a51
15 lines
629 B
XML
15 lines
629 B
XML
<!-- BEGIN_INCLUDE(file_provider_paths_declaration) -->
|
|
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<!-- Offer access to files under Context.getFilesDir() + "thumbs/"
|
|
through alias "my_thumbs" -->
|
|
<files-path name="my_thumbs" path="thumbs/" />
|
|
|
|
<!-- Offer access to files under Environment.getExternalStorageDirectory()
|
|
through alias "my_external" -->
|
|
<external-path name="my_external" />
|
|
|
|
<!-- Offer access to files under "/proc" through alias "my_proc" -->
|
|
<root-path name="my_proc" path="proc/" />
|
|
</paths>
|
|
<!-- END_INCLUDE(file_provider_paths_declaration) -->
|