Skip to content

Instantly share code, notes, and snippets.

@anggrayudi
Created September 30, 2020 08:30
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 anggrayudi/0a2b69f42d8807fb0e0288459ad924fe to your computer and use it in GitHub Desktop.
Save anggrayudi/0a2b69f42d8807fb0e0288459ad924fe to your computer and use it in GitHub Desktop.
Easy Storage Access Framework in Android with SimpleStorage
DocumentFile rootFolder = DocumentFile.fromTreeUri(Uri.parse("content://com.android.externalstorage.documents/tree/14EC-BF55%3A"));
DocumentFile file = rootFolder.findFile("Movies").findFile("Horror").findFile("The_Conjuring.mp4");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment