MediaStore
and Permissions
No permissions are required to work with the MediaStore
, in terms of writing your own content. According to the documentation, READ_EXTERNAL_STORAGE
is required, though, for consuming the content added to the MediaStore
by others.
And, the documentation suggests that in the future, if you try to modify another app’s content, the exception that will be raised will be a subclass of RecoverableSecurityException
. This contains, among other things, a RemoteAction
that can be used to present an option to the user for recovering from the problem. In this case, presumably it will display some sort of system dialog to have the user grant rights for your app to modify that content.
Prev Table of Contents Next
This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.