How can we change text of Android M permission request dialogue screen? -
if(checkselfpermission(manifest.permission.camera)!=packagemanager.permission_granted) { // permission has not been granted , must requested. if (shouldshowrequestpermissionrationale(manifest.permission.camera)) { toast.maketext(this, "camera access required display camera preview.",toast.length_short).show();
// want change prompt message here instead of giving toast message message explanatory why permission needed } }
Comments
Post a Comment