This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DocumentFile.fromTreeUri(Uri.parse("content://com.android.externalstorage.documents/tree/14EC-BF55%3AMovies%2FHorror%2FThe_Conjuring.mp4")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DocumentFile file = DocumentFile.fromTreeUri(Uri.parse("content://com.android.externalstorage.documents/tree/14EC-BF55%3AMovies%2FHorror/document/14EC-BF55%3AMovies%2FHorror%2FThe_Conjuring.mp4")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DocumentFile file = DocumentFileCompat.fromSimplePath(context, "14EC-BF55", "Movies/Horror/The_Conjuring.mp4"); |