Requesting a permission

Report a typo

What method should you use to request a permission? In the answer box, type only the name of the method.

if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) {
    recordAudio()
} else {
    // ?
}
Enter a short text
___

Create a free account to access the full topic