Android弹出申请访问权限
//动态访问权限弹窗
public Boolean checkPermission() {
boolean isGranted = true;
if (android.os.Build.VERSION.SDK_INT >= 23) {
朱朝阳荣梓杉
if (this.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { isGranted = false;
}
if (this.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) !=PackageManager.PERMISSION_GRANTED) { isGranted = false;
}
Log.i("读写权限获取"," : "+isGranted);
if (!isGranted) {
new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission黄健中个人简历
.ACCESS_FINE_LOCATION,
辣椒种植技术视频
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE},
学风建设方案
购买二手车注意事项102);
女孩好听名字
}
}
return isGranted;
}