Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Starting from Android 14, instead of using READ_MEDIA_VIDEO and READ_MEDIA_IMAGES, it is recommended to use PickVisualMedia. I am working on creating code that selects a video file using PickVisualMedia and then finds the subtitle file for that video file.
The URI obtained from PickVisualMedia starts with 'content://media/picker/'.
When using SAF (Storage Access Framework), the DocumentsContract.getDocumentId(uri) method cannot handle URIs that start with 'content://media/picker/', and it is not possible to query directly from MediaStore to find the subtitle file.
Is it impossible to find a subtitle file with the same name in the same directory as the video file using the video file's URI in Android 14?