NOTE: This question IS NOT for customizing the text in a permission request dialog (
shouldShowRequestPermissionRationale()
mentioned in OP).
Are the message strings displayed when calling requestPermissions()
standard, or vendor specific? Are these strings accessible for reuse?
In OnRequestPermissionsResult()
, if the user denies Android.Manifest.Permission.WriteExternalStorage
, I would like to show a dialog saying "<app-name> requires " + "Allow <app-name> to access photos, media, and files on your device"
(or something to that effect), instead of writing a different message like "SD-Card write access required to continue." (which is something more suited shouldShowRequestPermissionRationale()
).
I'd prefer the messages match to avoid confusion, so that when the user is re-prompted they know exactly what permissions are required to allow.
Here is an example of my usage of OnRequestPermissionsResult