Skip to content
Branch: master
Find file History

Android StorageProvider Sample

This sample shows how to implement a simple documents provider using the storage access framework available in Android 4.4.


This sample uses the StorageAccessFramework introduced in Android 4.4 to implement a DocumentsProvider.

See Writing A Custom Document Provider guide for all the details on how to do this.


  • Android SDK 28
  • Android Build Tools v28.0.3
  • Android Support Repository


Screenshot Screenshot

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.


If you've found an error in this sample, please file an issue:

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see for more details.

You can’t perform that action at this time.