//STORAGE 存储卡文件读写权限组 public final static int requestCode_storage = 100; public static String permissions_storage[] = new String[]{
"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE" };
//MICROPHONE 麦克风权限组 public final static int requestCode_audio = 101; public static String permissions_audio[] = new String[]{
"android.permission.RECORD_AUDIO" };
//CAMERA 相机权限组 public final static int requestCode_camera = 102; public static String permissions_camera[] = new String[]{
"android.permission.CAMERA" };
//LOCATION 位置权限组 public final static int requestCode_location = 103; public static String permissions_location[] = new String[]{
"android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COASE_LOCATION" };
//PHONE 手机权限组 public final static int requestCode_phone = 104; public static String permissions_phone[] = new String[]{
"android.permission.READ_PHONE_STATE", "android.permission.CALL_PHONE", "android.permission.READ_CALL_LOG", "android.permission.WRITE_CALL_LOG" };
//CALENDAR 日历权限组 public final static int requestCode_calendar = 105; public static String permissions_calendar[] = new String[]{
"android.permission.READ_CALENDAR", "android.permission.WRITE_CALENDAR" };
//CONTACTS 联系人权限组 public final static int requestCode_contacts = 106; public static String permissions_contacts[] = new String[]{
"android.permission.READ_CONTACTS", "android.permission.WRITE_CONTACTS", "android.permission.GET_ACCOUNTS" };
//SMS 短信权限组 public final static int requestCode_sms = 107; public static String permissions_sms[] = new String[]{
"android.permission.SEND_SMS", "android.permission.RECEIVE_SMS", "android.permission.READ_SMS", "android.permission.RECEIVE_WAP_PUSH" };
//BODY_SENSORS 传感器权限组 public final static int requestCode_sensors = 108; public static String permissions_sensors[] = new String[]{
"android.permission.BODY_SENSORS" };
public final static int requestCode_all = 109; public static int granted = PackageManager.PERMISSION_GRANTED;
int storagesDenyed = 0; //表明当前权限有没有被用户拒绝 int audiosDenyed = 0; int camerasDenyed = 0; int locationsDenyed = 0; int phonesDenyed = 0; int calendarsDenyed = 0; int contactsDenyed = 0; int smsDenyed = 0; int sensorsDenyed = 0;
public static int compareCount = 0; public static int needCompareCount = 0;