Skip to content

Instantly share code, notes, and snippets.

View anggrayudi's full-sized avatar
🏦
WFO

Anggrayudi H anggrayudi

🏦
WFO
View GitHub Profile
@anggrayudi
anggrayudi / DocumentFile_directFile.java
Last active September 30, 2020 08:33
Easy Storage Access Framework in Android with SimpleStorage
DocumentFile.fromTreeUri(Uri.parse("content://com.android.externalstorage.documents/tree/14EC-BF55%3AMovies%2FHorror%2FThe_Conjuring.mp4"));
@anggrayudi
anggrayudi / DocumentFile_findFiles.java
Created September 30, 2020 08:30
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");
@anggrayudi
anggrayudi / DocumentFile_getFile_API_30.java
Created September 30, 2020 08:30
Easy Storage Access Framework in Android with SimpleStorage
DocumentFile file = DocumentFile.fromTreeUri(Uri.parse("content://com.android.externalstorage.documents/tree/14EC-BF55%3AMovies%2FHorror/document/14EC-BF55%3AMovies%2FHorror%2FThe_Conjuring.mp4"));
@anggrayudi
anggrayudi / DocumentFileCompat_fromPath.java
Last active December 14, 2020 17:45
Easy Storage Access Framework in Android with SimpleStorage
DocumentFile file = DocumentFileCompat.fromSimplePath(context, "14EC-BF55", "Movies/Horror/The_Conjuring.mp4");