On the [Xiaomi] phone, if you refuse permission and select [no prompt], then jump to settings with the following gotoSetting () to open permission, then call requestEvery, the accept is granted, but from [settings App], check the permission of the current application, the status is prohibited.
On the [Xiaomi] phone, if you refuse permission and select [no prompt], then jump to settings with the following gotoSetting () to open permission, then call requestEvery, the accept is granted, but from [settings App], check the permission of the current application, the status is prohibited.
private void gotoSetting() { //跳转到设置权限界面 Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", getApplicationContext().getPackageName(), null); intent.setData(uri); startActivityForResult(intent, REQ_SETTING); }