You cannot configure application permissions. What you can do is display the "Request Request Resolution" dialog box, see "How to Display Custom Messages in the Request Resolution Dialog"
So, what you can do is make some test recording when the application starts, then the "Request Permission" dialog box will appear. It will come anyway, but at startup it will be more in place, and more, you can customize your message text there.
UPDATE
If the permission is set to Reject, there will be no Promotion dialog box in the negative action.
Then you can use ApplicationPermissionManager to call the request to request:
ApplicationPermissionsManager manager = ApplicationPermissionsManager .getInstance(); int current = manager .getPermission(ApplicationPermissions.PERMISSION_SCREEN_CAPTURE); if (current != ApplicationPermissions.VALUE_ALLOW) { ApplicationPermissions permissions = new ApplicationPermissions(); permissions.addPermission(ApplicationPermissions.PERMISSION_SCREEN_CAPTURE); manager.invokePermissionsRequest(permissions); }
source share