I have an app that implements its own interface for selecting files, which is a requirement for the app to work properly.
In KitKat, files on an (External) SD-Card need to have permission given via the Storage Access Framework before they can be modified.
Since these restricted files are still freely readable, it doesn't stop my app from displaying them. But once the user selects to perform an operation on one of these files can I prompt the user with a specific permission request using the Storage Access Framework?
Below is the sample from the documentation. This returns a set of all possible images. Obviously I don't want to show the user all images, if I already can identify the specific image that I'm requesting permission for. Are there any other filters that would narrow down what's presented to the user?
(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("image/*");