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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -