private String[] permissions = {Manifest.permission.CAMERA,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
// Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.GET_ACCOUNTS,
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.RECORD_AUDIO,
Manifest.permission.CALL_PHONE,
// Manifest.permission.READ_EXTERNAL_STORAGE
};
String content[]={"拍照和录制视频权限","读写存储卡权限","获取手机账户列表权限","手机定位权限","录制音频权限","打电话权限"};
private void checkPermissions() {
if (Build.VERSION.SDK_INT >= 23) {
ActivityCompat.requestPermissions(this, permissions, 321);
}
}
StringBuilder sb_error=null;
StringBuilder sb_wrong=null;
public void onRequestPermissionsResult(int requestCode, @NonNull Str