其他分享
首页 > 其他分享> > 向用户提供请求权限理由

向用户提供请求权限理由

作者:互联网

 

 

  1   private static final int PERMISSION_REQUEST_CAMERA = 0;
  2     private static final int     ENDV_WRITE_USER_DICTIONARY     =     1    ;
  3     private static final int     ENDV_WRITE_SYNC_SETTINGS     =     2    ;
  4     private static final int     ENDV_WRITE_SOCIAL_STREAM     =     3    ;
  5     private static final int     ENDV_WRITE_SMS     =     4    ;
  6     private static final int     ENDV_WRITE_SETTINGS     =     5    ;
  7     private static final int     ENDV_WRITE_SECURE_SETTINGS     =     6    ;
  8     private static final int     ENDV_WRITE_PROFILE     =     7    ;
  9     private static final int     ENDV_RITE_HISTORY_BOOKMARKS     =     8    ;
 10     private static final int     ENDV_WRITE_GSERVICES     =     9    ;
 11     private static final int     ENDV_WRITE_EXTERNAL_STORAGE     =     10    ;
 12     private static final int     ENDV_WRITE_CONTACTS     =     11    ;
 13     private static final int     ENDV_WRITE_CALL_LOG     =     12    ;
 14     private static final int     ENDV_WRITE_CALENDAR     =     13    ;
 15     private static final int     ENDV_WRITE_APN_SETTINGS     =     14    ;
 16     private static final int     ENDV_WAKE_LOCK     =     15    ;
 17     private static final int     ENDV_VIBRATE     =     16    ;
 18     private static final int     ENDV_USE_SIP     =     17    ;
 19     private static final int     ENDV_USE_CREDENTIALS     =     18    ;
 20     private static final int     ENDV_UPDATE_DEVICE_STATS     =     19    ;
 21     private static final int     ENDV_UNINSTALL_SHORTCUT     =     20    ;
 22     private static final int     ENDV_TRANSMIT_IR     =     21    ;
 23     private static final int     ENDV_SYSTEM_ALERT_WINDOW     =     22    ;
 24     private static final int     ENDV_STATUS_BAR     =     22    ;
 25     private static final int     ENDV_SUBSCRIBED_FEEDS_WRITE     =     23    ;
 26     private static final int     ENDV_SIGNAL_PERSISTENT_PROCESSES     =     23    ;
 27     private static final int     ENDV_SUBSCRIBED_FEEDS_READ     =     24    ;
 28     private static final int     ENDV_SET_WALLPAPER_HINTS     =     24    ;
 29     private static final int     ENDV_SET_WALLPAPER     =     25    ;
 30     private static final int     ENDV_SET_TIME_ZONE     =     26    ;
 31     private static final int     ENDV_SET_TIME     =     27    ;
 32     private static final int     ENDV_SET_PROCESS_LIMIT     =     28    ;
 33     private static final int     ENDV_SET_PREFERRED_APPLICATIONS     =     29    ;
 34     private static final int     ENDV_SET_POINTER_SPEED     =     30    ;
 35     private static final int     ENDV_SET_ORIENTATION     =     31    ;
 36     private static final int     ENDV_SET_DEBUG_APP     =     32    ;
 37     private static final int     ENDV_SET_ANIMATION_SCALE     =     33    ;
 38     private static final int     ENDV_SET_ALWAYS_FINISH     =     34    ;
 39     private static final int     ENDV_SET_ALARM     =     36    ;
 40     private static final int     ENDV_SET_ACTIVITY_WATCHER     =     37    ;
 41     private static final int     ENDV_SEND_SMS     =     38    ;
 42     private static final int     ENDV_SEND_RESPOND_VIA_MESSAGE     =     39    ;
 43     private static final int     ENDV_RESTART_PACKAGES     =     40    ;
 44     private static final int     ENDV_REORDER_TASKS     =     41    ;
 45     private static final int     ENDV_RECORD_AUDIO     =     42    ;
 46     private static final int     ENDV_RECEIVE_WAP_PUSH     =     43    ;
 47     private static final int     ENDV_RECEIVE_SMS     =     44    ;
 48     private static final int     ENDV_RECEIVE_MMS     =     45    ;
 49     private static final int     ENDV_RECEIVE_BOOT_COMPLETED     =     46    ;
 50     private static final int     ENDV_REBOOT     =     47    ;
 51     private static final int     ENDV_READ_USER_DICTIONARY     =     48    ;
 52     private static final int     ENDV_READ_SYNC_STATS     =     49    ;
 53     private static final int     ENDV_READ_SYNC_SETTINGS     =     50    ;
 54     private static final int     ENDV_READ_SOCIAL_STREAM     =     51    ;
 55     private static final int     ENDV_READ_SMS     =     52    ;
 56     private static final int     ENDV_READ_PROFILE     =     53    ;
 57     private static final int     ENDV_READ_PHONE_STATE     =     54    ;
 58     private static final int     ENDV_READ_LOGS     =     55    ;
 59     private static final int     ENDV_READ_INPUT_STATE     =     56    ;
 60     private static final int     ENDV_READ_HISTORY_BOOKMARKS     =     57    ;
 61     private static final int     ENDV_READ_FRAME_BUFFER     =     58    ;
 62     private static final int     ENDV_READ_EXTERNAL_STORAGE     =     59    ;
 63     private static final int     ENDV_READ_CONTACTS     =     60    ;
 64     private static final int     ENDV_READ_CALL_LOG     =     61    ;
 65     private static final int     ENDV_READ_CALENDAR     =     62    ;
 66     private static final int     ENDV_PROCESS_OUTGOING_CALLS     =     63    ;
 67     private static final int     ENDV_PERSISTENT_ACTIVITY     =     64    ;
 68     private static final int     ENDV_NFC     =     65    ;
 69     private static final int     ENDV_MOUNT_UNMOUNT_FILESYSTEMS     =     66    ;
 70     private static final int     ENDV_MOUNT_FORMAT_FILESYSTEMS     =     67    ;
 71     private static final int     ENDV_MODIFY_PHONE_STATE     =     68    ;
 72     private static final int     ENDV_MODIFY_AUDIO_SETTINGS     =     69    ;
 73     private static final int     ENDV_MEDIA_CONTENT_CONTROL     =     70    ;
 74     private static final int     ENDV_MASTER_CLEAR     =     71    ;
 75     private static final int     ENDV_MANAGE_DOCUMENTS     =     72    ;
 76     private static final int     ENDV_MANAGE_APP_TOKENS     =     73    ;
 77     private static final int     ENDV_MANAGE_ACCOUNTS     =     74    ;
 78     private static final int     ENDV_LOCATION_HARDWARE     =     75    ;
 79     private static final int     ENDV_KILL_BACKGROUND_PROCESSES     =     76    ;
 80     private static final int     ENDV_INTERNET     =     77    ;
 81     private static final int     ENDV_INTERNAL_SYSTEM_WINDOW     =     78    ;
 82     private static final int     ENDV_INSTALL_SHORTCUT     =     79    ;
 83     private static final int     ENDV_INSTALL_PACKAGES     =     80    ;
 84     private static final int     ENDV_INSTALL_LOCATION_PROVIDER     =     81    ;
 85     private static final int     ENDV_INJECT_EVENTS     =     82    ;
 86     private static final int     ENDV_HARDWARE_TEST     =     83    ;
 87     private static final int     ENDV_GLOBAL_SEARCH     =     84    ;
 88     private static final int     ENDV_GET_TOP_ACTIVITY_INFO     =     85    ;
 89     private static final int     ENDV_GET_TASKS     =     86    ;
 90     private static final int     ENDV_GET_PACKAGE_SIZE     =     87    ;
 91     private static final int     ENDV_GET_ACCOUNTS     =     88    ;
 92     private static final int     ENDV_FORCE_BACK     =     89    ;
 93     private static final int     ENDV_FLASHLIGHT     =     90    ;
 94     private static final int     ENDV_FACTORY_TEST     =     91    ;
 95     private static final int     ENDV_EXPAND_STATUS_BAR     =     92    ;
 96     private static final int     ENDV_DUMP     =     93    ;
 97     private static final int     ENDV_DISABLE_KEYGUARD     =     94    ;
 98     private static final int     ENDV_DIAGNOSTIC     =     95    ;
 99     private static final int     ENDV_DEVICE_POWER     =     96    ;
100     private static final int     ENDV_DELETE_PACKAGES     =     97    ;
101     private static final int     ENDV_DELETE_CACHE_FILES     =     98    ;
102     private static final int     ENDV_CONTROL_LOCATION_UPDATES     =     99    ;
103     private static final int     ENDV_CLEAR_APP_USER_DATA     =     100    ;
104     private static final int     ENDV_CLEAR_APP_CACHE     =     101    ;
105     private static final int     ENDV_CHANGE_WIFI_STATE     =     102    ;
106     private static final int     ENDV_CHANGE_WIFI_MULTICAST_STATE     =     103    ;
107     private static final int     ENDV_CHANGE_NETWORK_STATE     =     104    ;
108     private static final int     ENDV_CHANGE_CONFIGURATION     =     105    ;
109     private static final int     ENDV_CHANGE_COMPONENT_ENABLED_STATE     =     106    ;
110     private static final int     ENDV_CAPTURE_VIDEO_OUTPUT     =     107    ;
111     private static final int     ENDV_CAPTURE_SECURE_VIDEO_OUTPUT     =     108    ;
112     private static final int     ENDV_CAPTURE_AUDIO_OUTPUT     =     109    ;
113     private static final int     ENDV_CAMERA     =     110    ;
114     private static final int     ENDV_CALL_PRIVILEGED     =     111    ;
115     private static final int     ENDV_CALL_PHONE     =     112    ;
116     private static final int     ENDV_BROADCAST_WAP_PUSHWAP_PUSH     =     113    ;
117     private static final int     ENDV_BROADCAST_STICKY     =     114    ;
118     private static final int     ENDV_BROADCAST_SMS     =     115    ;
119     private static final int     ENDV_BROADCAST_PACKAGE_REMOVED     =     116    ;
120     private static final int     ENDV_BRICK     =     117    ;
121     private static final int     ENDV_BLUETOOTH_PRIVILEGED     =     118    ;
122     private static final int     ENDV_BLUETOOTH_ADMIN     =     119    ;
123     private static final int     ENDV_BLUETOOTH     =     120    ;
124     private static final int     ENDV_BIND_WALLPAPER     =     121    ;
125     private static final int     ENDV_BIND_VPN_SERVICE     =     122    ;
126     private static final int     ENDV_BIND_TEXT_SERVICE     =     123    ;
127     private static final int     ENDV_BIND_REMOTEVIEWS     =     124    ;
128     private static final int     ENDV_BIND_PRINT_SERVICE     =     125    ;
129     private static final int     ENDV_BIND_NOTIFICATION_LISTENER_SERVICE     =     126    ;
130     private static final int     ENDV_BIND_NFC_SERVICE     =     127    ;
131     private static final int     ENDV_BIND_INPUT_METHOD     =     128    ;
132     private static final int     ENDV_BIND_DEVICE_ADMIN     =     129    ;
133     private static final int     ENDV_BIND_APPWIDGET     =     130    ;
134     private static final int     ENDV_BIND_ACCESSIBILITY_SERVICE     =     131    ;
135     private static final int     ENDV_AUTHENTICATE_ACCOUNTS     =     132    ;
136     private static final int     ENDV_ADD_VOICEMAIL     =     133    ;
137     private static final int     ENDV_ACCOUNT_MANAGER     =     134    ;
138     private static final int     ENDV_ACCESS_WIFI_STATE     =     135    ;
139     private static final int     ENDV_ACCESS_SURFACE_FLINGER     =     136    ;
140     private static final int     ENDV_ACCESS_NETWORK_STATE     =     137    ;
141     private static final int     ENDV_ACCESS_MOCK_LOCATION     =     138    ;
142     private static final int     ENDV_ACCESS_LOCATION_EXTRA_COMMANDS     =     139    ;
143     private static final int     ENDV_ACCESS_FINE_LOCATION     =     140    ;
144     private static final int     ENDV_ACCESS_COARSE_LOCATION     =     141    ;
145     private static final int     ENDV_ACCESS_CHECKIN_PROPERTIES     =     142    ;
146     private static final int     ENDV_BODY_SENSORS     =     143    ;
147     private static final int     ENDV_READ_CELL_BROADCASTS     =     144    ;
148     private static final int     ENDV_WRITE_HISTORY_BOOKMARKS     =     145    ;
private static final int

 

向用户提供请求权限理由

  1 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_USER_DICTIONARY    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_USER_DICTIONARY},    ENDV_WRITE_USER_DICTIONARY); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_USER_DICTIONARY},ENDV_WRITE_USER_DICTIONARY); }
  2         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_SYNC_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_SYNC_SETTINGS},    ENDV_WRITE_SYNC_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_SYNC_SETTINGS},ENDV_WRITE_SYNC_SETTINGS); }
  3 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_SOCIAL_STREAM    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_SOCIAL_STREAM},    ENDV_WRITE_SOCIAL_STREAM); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_SOCIAL_STREAM},ENDV_WRITE_SOCIAL_STREAM); }
  4 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_SMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_SMS},    ENDV_WRITE_SMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_SMS},ENDV_WRITE_SMS); }
  5         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_SETTINGS},    ENDV_WRITE_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_SETTINGS},ENDV_WRITE_SETTINGS); }
  6         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_SECURE_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_SECURE_SETTINGS},    ENDV_WRITE_SECURE_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_SECURE_SETTINGS},ENDV_WRITE_SECURE_SETTINGS); }
  7 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_PROFILE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_PROFILE},    ENDV_WRITE_PROFILE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_PROFILE},ENDV_WRITE_PROFILE); }
  8 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_HISTORY_BOOKMARKS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_HISTORY_BOOKMARKS},    ENDV_WRITE_HISTORY_BOOKMARKS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_HISTORY_BOOKMARKS},ENDV_WRITE_HISTORY_BOOKMARKS); }
  9         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_GSERVICES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_GSERVICES},    ENDV_WRITE_GSERVICES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_GSERVICES},ENDV_WRITE_GSERVICES); }
 10         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_EXTERNAL_STORAGE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_EXTERNAL_STORAGE},    ENDV_WRITE_EXTERNAL_STORAGE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},ENDV_WRITE_EXTERNAL_STORAGE); }
 11         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_CONTACTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_CONTACTS},    ENDV_WRITE_CONTACTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_CONTACTS},ENDV_WRITE_CONTACTS); }
 12         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_CALL_LOG    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_CALL_LOG},    ENDV_WRITE_CALL_LOG); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_CALL_LOG},ENDV_WRITE_CALL_LOG); }
 13         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_CALENDAR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_CALENDAR},    ENDV_WRITE_CALENDAR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_CALENDAR},ENDV_WRITE_CALENDAR); }
 14         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WRITE_APN_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WRITE_APN_SETTINGS},    ENDV_WRITE_APN_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_APN_SETTINGS},ENDV_WRITE_APN_SETTINGS); }
 15         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.WAKE_LOCK    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    WAKE_LOCK},    ENDV_WAKE_LOCK); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WAKE_LOCK},ENDV_WAKE_LOCK); }
 16         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.VIBRATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    VIBRATE},    ENDV_VIBRATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.VIBRATE},ENDV_VIBRATE); }
 17         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.USE_SIP    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    USE_SIP},    ENDV_USE_SIP); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.USE_SIP},ENDV_USE_SIP); }
 18 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.USE_CREDENTIALS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    USE_CREDENTIALS},    ENDV_USE_CREDENTIALS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.USE_CREDENTIALS},ENDV_USE_CREDENTIALS); }
 19         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.UPDATE_DEVICE_STATS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    UPDATE_DEVICE_STATS},    ENDV_UPDATE_DEVICE_STATS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.UPDATE_DEVICE_STATS},ENDV_UPDATE_DEVICE_STATS); }
 20         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.UNINSTALL_SHORTCUT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    UNINSTALL_SHORTCUT},    ENDV_UNINSTALL_SHORTCUT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.UNINSTALL_SHORTCUT},ENDV_UNINSTALL_SHORTCUT); }
 21         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.TRANSMIT_IR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    TRANSMIT_IR},    ENDV_TRANSMIT_IR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.TRANSMIT_IR},ENDV_TRANSMIT_IR); }
 22         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SYSTEM_ALERT_WINDOW    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SYSTEM_ALERT_WINDOW},    ENDV_SYSTEM_ALERT_WINDOW); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SYSTEM_ALERT_WINDOW},ENDV_SYSTEM_ALERT_WINDOW); }
 23         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.STATUS_BAR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    STATUS_BAR},    ENDV_STATUS_BAR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.STATUS_BAR},ENDV_STATUS_BAR); }
 24 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SUBSCRIBED_FEEDS_WRITE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SUBSCRIBED_FEEDS_WRITE},    ENDV_SUBSCRIBED_FEEDS_WRITE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SUBSCRIBED_FEEDS_WRITE},ENDV_SUBSCRIBED_FEEDS_WRITE); }
 25         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SIGNAL_PERSISTENT_PROCESSES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SIGNAL_PERSISTENT_PROCESSES},    ENDV_SIGNAL_PERSISTENT_PROCESSES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SIGNAL_PERSISTENT_PROCESSES},ENDV_SIGNAL_PERSISTENT_PROCESSES); }
 26 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SUBSCRIBED_FEEDS_READ    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SUBSCRIBED_FEEDS_READ},    ENDV_SUBSCRIBED_FEEDS_READ); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SUBSCRIBED_FEEDS_READ},ENDV_SUBSCRIBED_FEEDS_READ); }
 27         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_WALLPAPER_HINTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_WALLPAPER_HINTS},    ENDV_SET_WALLPAPER_HINTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_WALLPAPER_HINTS},ENDV_SET_WALLPAPER_HINTS); }
 28         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_WALLPAPER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_WALLPAPER},    ENDV_SET_WALLPAPER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_WALLPAPER},ENDV_SET_WALLPAPER); }
 29         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_TIME_ZONE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_TIME_ZONE},    ENDV_SET_TIME_ZONE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_TIME_ZONE},ENDV_SET_TIME_ZONE); }
 30         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_TIME    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_TIME},    ENDV_SET_TIME); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_TIME},ENDV_SET_TIME); }
 31         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_PROCESS_LIMIT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_PROCESS_LIMIT},    ENDV_SET_PROCESS_LIMIT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_PROCESS_LIMIT},ENDV_SET_PROCESS_LIMIT); }
 32         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_PREFERRED_APPLICATIONS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_PREFERRED_APPLICATIONS},    ENDV_SET_PREFERRED_APPLICATIONS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_PREFERRED_APPLICATIONS},ENDV_SET_PREFERRED_APPLICATIONS); }
 33 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_POINTER_SPEED    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_POINTER_SPEED},    ENDV_SET_POINTER_SPEED); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_POINTER_SPEED},ENDV_SET_POINTER_SPEED); }
 34 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_ORIENTATION    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_ORIENTATION},    ENDV_SET_ORIENTATION); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_ORIENTATION},ENDV_SET_ORIENTATION); }
 35         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_DEBUG_APP    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_DEBUG_APP},    ENDV_SET_DEBUG_APP); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_DEBUG_APP},ENDV_SET_DEBUG_APP); }
 36         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_ANIMATION_SCALE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_ANIMATION_SCALE},    ENDV_SET_ANIMATION_SCALE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_ANIMATION_SCALE},ENDV_SET_ANIMATION_SCALE); }
 37         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_ALWAYS_FINISH    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_ALWAYS_FINISH},    ENDV_SET_ALWAYS_FINISH); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_ALWAYS_FINISH},ENDV_SET_ALWAYS_FINISH); }
 38         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_ALARM    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_ALARM},    ENDV_SET_ALARM); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_ALARM},ENDV_SET_ALARM); }
 39 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SET_ACTIVITY_WATCHER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SET_ACTIVITY_WATCHER},    ENDV_SET_ACTIVITY_WATCHER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SET_ACTIVITY_WATCHER},ENDV_SET_ACTIVITY_WATCHER); }
 40         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SEND_SMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SEND_SMS},    ENDV_SEND_SMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SEND_SMS},ENDV_SEND_SMS); }
 41         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.SEND_RESPOND_VIA_MESSAGE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    SEND_RESPOND_VIA_MESSAGE},    ENDV_SEND_RESPOND_VIA_MESSAGE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.SEND_RESPOND_VIA_MESSAGE},ENDV_SEND_RESPOND_VIA_MESSAGE); }
 42         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RESTART_PACKAGES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RESTART_PACKAGES},    ENDV_RESTART_PACKAGES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RESTART_PACKAGES},ENDV_RESTART_PACKAGES); }
 43         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.REORDER_TASKS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    REORDER_TASKS},    ENDV_REORDER_TASKS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.REORDER_TASKS},ENDV_REORDER_TASKS); }
 44         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RECORD_AUDIO    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RECORD_AUDIO},    ENDV_RECORD_AUDIO); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECORD_AUDIO},ENDV_RECORD_AUDIO); }
 45         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RECEIVE_WAP_PUSH    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RECEIVE_WAP_PUSH},    ENDV_RECEIVE_WAP_PUSH); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECEIVE_WAP_PUSH},ENDV_RECEIVE_WAP_PUSH); }
 46         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RECEIVE_SMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RECEIVE_SMS},    ENDV_RECEIVE_SMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECEIVE_SMS},ENDV_RECEIVE_SMS); }
 47         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RECEIVE_MMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RECEIVE_MMS},    ENDV_RECEIVE_MMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECEIVE_MMS},ENDV_RECEIVE_MMS); }
 48         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.RECEIVE_BOOT_COMPLETED    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    RECEIVE_BOOT_COMPLETED},    ENDV_RECEIVE_BOOT_COMPLETED); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.RECEIVE_BOOT_COMPLETED},ENDV_RECEIVE_BOOT_COMPLETED); }
 49         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.REBOOT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    REBOOT},    ENDV_REBOOT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.REBOOT},ENDV_REBOOT); }
 50 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_USER_DICTIONARY    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_USER_DICTIONARY},    ENDV_READ_USER_DICTIONARY); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_USER_DICTIONARY},ENDV_READ_USER_DICTIONARY); }
 51         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_SYNC_STATS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_SYNC_STATS},    ENDV_READ_SYNC_STATS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_SYNC_STATS},ENDV_READ_SYNC_STATS); }
 52         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_SYNC_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_SYNC_SETTINGS},    ENDV_READ_SYNC_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_SYNC_SETTINGS},ENDV_READ_SYNC_SETTINGS); }
 53 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_SOCIAL_STREAM    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_SOCIAL_STREAM},    ENDV_READ_SOCIAL_STREAM); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_SOCIAL_STREAM},ENDV_READ_SOCIAL_STREAM); }
 54         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_SMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_SMS},    ENDV_READ_SMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_SMS},ENDV_READ_SMS); }
 55 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_PROFILE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_PROFILE},    ENDV_READ_PROFILE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_PROFILE},ENDV_READ_PROFILE); }
 56         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_PHONE_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_PHONE_STATE},    ENDV_READ_PHONE_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_PHONE_STATE},ENDV_READ_PHONE_STATE); }
 57         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_LOGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_LOGS},    ENDV_READ_LOGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_LOGS},ENDV_READ_LOGS); }
 58         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_INPUT_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_INPUT_STATE},    ENDV_READ_INPUT_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_INPUT_STATE},ENDV_READ_INPUT_STATE); }
 59 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_HISTORY_BOOKMARKS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_HISTORY_BOOKMARKS},    ENDV_READ_HISTORY_BOOKMARKS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_HISTORY_BOOKMARKS},ENDV_READ_HISTORY_BOOKMARKS); }
 60 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_FRAME_BUFFER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_FRAME_BUFFER},    ENDV_READ_FRAME_BUFFER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_FRAME_BUFFER},ENDV_READ_FRAME_BUFFER); }
 61         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_EXTERNAL_STORAGE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_EXTERNAL_STORAGE},    ENDV_READ_EXTERNAL_STORAGE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},ENDV_READ_EXTERNAL_STORAGE); }
 62         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_CONTACTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_CONTACTS},    ENDV_READ_CONTACTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_CONTACTS},ENDV_READ_CONTACTS); }
 63         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_CALL_LOG    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_CALL_LOG},    ENDV_READ_CALL_LOG); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_CALL_LOG},ENDV_READ_CALL_LOG); }
 64         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_CALENDAR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_CALENDAR},    ENDV_READ_CALENDAR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_CALENDAR},ENDV_READ_CALENDAR); }
 65         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.PROCESS_OUTGOING_CALLS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    PROCESS_OUTGOING_CALLS},    ENDV_PROCESS_OUTGOING_CALLS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.PROCESS_OUTGOING_CALLS},ENDV_PROCESS_OUTGOING_CALLS); }
 66         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.PERSISTENT_ACTIVITY    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    PERSISTENT_ACTIVITY},    ENDV_PERSISTENT_ACTIVITY); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.PERSISTENT_ACTIVITY},ENDV_PERSISTENT_ACTIVITY); }
 67         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.NFC    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    NFC},    ENDV_NFC); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.NFC},ENDV_NFC); }
 68         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MOUNT_UNMOUNT_FILESYSTEMS},    ENDV_MOUNT_UNMOUNT_FILESYSTEMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS},ENDV_MOUNT_UNMOUNT_FILESYSTEMS); }
 69         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MOUNT_FORMAT_FILESYSTEMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MOUNT_FORMAT_FILESYSTEMS},    ENDV_MOUNT_FORMAT_FILESYSTEMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MOUNT_FORMAT_FILESYSTEMS},ENDV_MOUNT_FORMAT_FILESYSTEMS); }
 70         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MODIFY_PHONE_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MODIFY_PHONE_STATE},    ENDV_MODIFY_PHONE_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MODIFY_PHONE_STATE},ENDV_MODIFY_PHONE_STATE); }
 71         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MODIFY_AUDIO_SETTINGS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MODIFY_AUDIO_SETTINGS},    ENDV_MODIFY_AUDIO_SETTINGS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MODIFY_AUDIO_SETTINGS},ENDV_MODIFY_AUDIO_SETTINGS); }
 72         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MEDIA_CONTENT_CONTROL    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MEDIA_CONTENT_CONTROL},    ENDV_MEDIA_CONTENT_CONTROL); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MEDIA_CONTENT_CONTROL},ENDV_MEDIA_CONTENT_CONTROL); }
 73         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MASTER_CLEAR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MASTER_CLEAR},    ENDV_MASTER_CLEAR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MASTER_CLEAR},ENDV_MASTER_CLEAR); }
 74         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MANAGE_DOCUMENTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MANAGE_DOCUMENTS},    ENDV_MANAGE_DOCUMENTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MANAGE_DOCUMENTS},ENDV_MANAGE_DOCUMENTS); }
 75 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MANAGE_APP_TOKENS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MANAGE_APP_TOKENS},    ENDV_MANAGE_APP_TOKENS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MANAGE_APP_TOKENS},ENDV_MANAGE_APP_TOKENS); }
 76 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.MANAGE_ACCOUNTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    MANAGE_ACCOUNTS},    ENDV_MANAGE_ACCOUNTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.MANAGE_ACCOUNTS},ENDV_MANAGE_ACCOUNTS); }
 77         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.LOCATION_HARDWARE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    LOCATION_HARDWARE},    ENDV_LOCATION_HARDWARE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.LOCATION_HARDWARE},ENDV_LOCATION_HARDWARE); }
 78         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.KILL_BACKGROUND_PROCESSES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    KILL_BACKGROUND_PROCESSES},    ENDV_KILL_BACKGROUND_PROCESSES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.KILL_BACKGROUND_PROCESSES},ENDV_KILL_BACKGROUND_PROCESSES); }
 79         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INTERNET    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INTERNET},    ENDV_INTERNET); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNET},ENDV_INTERNET); }
 80 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INTERNAL_SYSTEM_WINDOW    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INTERNAL_SYSTEM_WINDOW},    ENDV_INTERNAL_SYSTEM_WINDOW); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNAL_SYSTEM_WINDOW},ENDV_INTERNAL_SYSTEM_WINDOW); }
 81         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INSTALL_SHORTCUT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INSTALL_SHORTCUT},    ENDV_INSTALL_SHORTCUT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INSTALL_SHORTCUT},ENDV_INSTALL_SHORTCUT); }
 82         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INSTALL_PACKAGES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INSTALL_PACKAGES},    ENDV_INSTALL_PACKAGES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INSTALL_PACKAGES},ENDV_INSTALL_PACKAGES); }
 83         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INSTALL_LOCATION_PROVIDER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INSTALL_LOCATION_PROVIDER},    ENDV_INSTALL_LOCATION_PROVIDER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INSTALL_LOCATION_PROVIDER},ENDV_INSTALL_LOCATION_PROVIDER); }
 84 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.INJECT_EVENTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    INJECT_EVENTS},    ENDV_INJECT_EVENTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INJECT_EVENTS},ENDV_INJECT_EVENTS); }
 85 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.HARDWARE_TEST    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    HARDWARE_TEST},    ENDV_HARDWARE_TEST); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.HARDWARE_TEST},ENDV_HARDWARE_TEST); }
 86         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.GLOBAL_SEARCH    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    GLOBAL_SEARCH},    ENDV_GLOBAL_SEARCH); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.GLOBAL_SEARCH},ENDV_GLOBAL_SEARCH); }
 87 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.GET_TOP_ACTIVITY_INFO    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    GET_TOP_ACTIVITY_INFO},    ENDV_GET_TOP_ACTIVITY_INFO); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.GET_TOP_ACTIVITY_INFO},ENDV_GET_TOP_ACTIVITY_INFO); }
 88         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.GET_TASKS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    GET_TASKS},    ENDV_GET_TASKS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.GET_TASKS},ENDV_GET_TASKS); }
 89         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.GET_PACKAGE_SIZE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    GET_PACKAGE_SIZE},    ENDV_GET_PACKAGE_SIZE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.GET_PACKAGE_SIZE},ENDV_GET_PACKAGE_SIZE); }
 90         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.GET_ACCOUNTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    GET_ACCOUNTS},    ENDV_GET_ACCOUNTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.GET_ACCOUNTS},ENDV_GET_ACCOUNTS); }
 91 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.FORCE_BACK    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    FORCE_BACK},    ENDV_FORCE_BACK); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.FORCE_BACK},ENDV_FORCE_BACK); }
 92 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.FLASHLIGHT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    FLASHLIGHT},    ENDV_FLASHLIGHT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.FLASHLIGHT},ENDV_FLASHLIGHT); }
 93         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.FACTORY_TEST    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    FACTORY_TEST},    ENDV_FACTORY_TEST); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.FACTORY_TEST},ENDV_FACTORY_TEST); }
 94         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.EXPAND_STATUS_BAR    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    EXPAND_STATUS_BAR},    ENDV_EXPAND_STATUS_BAR); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.EXPAND_STATUS_BAR},ENDV_EXPAND_STATUS_BAR); }
 95         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DUMP    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DUMP},    ENDV_DUMP); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DUMP},ENDV_DUMP); }
 96         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DISABLE_KEYGUARD    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DISABLE_KEYGUARD},    ENDV_DISABLE_KEYGUARD); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DISABLE_KEYGUARD},ENDV_DISABLE_KEYGUARD); }
 97         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DIAGNOSTIC    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DIAGNOSTIC},    ENDV_DIAGNOSTIC); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DIAGNOSTIC},ENDV_DIAGNOSTIC); }
 98 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DEVICE_POWER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DEVICE_POWER},    ENDV_DEVICE_POWER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DEVICE_POWER},ENDV_DEVICE_POWER); }
 99         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DELETE_PACKAGES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DELETE_PACKAGES},    ENDV_DELETE_PACKAGES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DELETE_PACKAGES},ENDV_DELETE_PACKAGES); }
100         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.DELETE_CACHE_FILES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    DELETE_CACHE_FILES},    ENDV_DELETE_CACHE_FILES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.DELETE_CACHE_FILES},ENDV_DELETE_CACHE_FILES); }
101         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CONTROL_LOCATION_UPDATES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CONTROL_LOCATION_UPDATES},    ENDV_CONTROL_LOCATION_UPDATES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CONTROL_LOCATION_UPDATES},ENDV_CONTROL_LOCATION_UPDATES); }
102 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CLEAR_APP_USER_DATA    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CLEAR_APP_USER_DATA},    ENDV_CLEAR_APP_USER_DATA); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CLEAR_APP_USER_DATA},ENDV_CLEAR_APP_USER_DATA); }
103         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CLEAR_APP_CACHE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CLEAR_APP_CACHE},    ENDV_CLEAR_APP_CACHE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CLEAR_APP_CACHE},ENDV_CLEAR_APP_CACHE); }
104         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CHANGE_WIFI_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CHANGE_WIFI_STATE},    ENDV_CHANGE_WIFI_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CHANGE_WIFI_STATE},ENDV_CHANGE_WIFI_STATE); }
105         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CHANGE_WIFI_MULTICAST_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CHANGE_WIFI_MULTICAST_STATE},    ENDV_CHANGE_WIFI_MULTICAST_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CHANGE_WIFI_MULTICAST_STATE},ENDV_CHANGE_WIFI_MULTICAST_STATE); }
106         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CHANGE_NETWORK_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CHANGE_NETWORK_STATE},    ENDV_CHANGE_NETWORK_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CHANGE_NETWORK_STATE},ENDV_CHANGE_NETWORK_STATE); }
107         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CHANGE_CONFIGURATION    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CHANGE_CONFIGURATION},    ENDV_CHANGE_CONFIGURATION); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CHANGE_CONFIGURATION},ENDV_CHANGE_CONFIGURATION); }
108         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CHANGE_COMPONENT_ENABLED_STATE},    ENDV_CHANGE_COMPONENT_ENABLED_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CHANGE_COMPONENT_ENABLED_STATE},ENDV_CHANGE_COMPONENT_ENABLED_STATE); }
109 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CAPTURE_VIDEO_OUTPUT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CAPTURE_VIDEO_OUTPUT},    ENDV_CAPTURE_VIDEO_OUTPUT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CAPTURE_VIDEO_OUTPUT},ENDV_CAPTURE_VIDEO_OUTPUT); }
110 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CAPTURE_SECURE_VIDEO_OUTPUT},    ENDV_CAPTURE_SECURE_VIDEO_OUTPUT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT},ENDV_CAPTURE_SECURE_VIDEO_OUTPUT); }
111         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CAPTURE_AUDIO_OUTPUT    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CAPTURE_AUDIO_OUTPUT},    ENDV_CAPTURE_AUDIO_OUTPUT); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CAPTURE_AUDIO_OUTPUT},ENDV_CAPTURE_AUDIO_OUTPUT); }
112         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CAMERA    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CAMERA},    ENDV_CAMERA); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CAMERA},ENDV_CAMERA); }
113         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CALL_PRIVILEGED    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CALL_PRIVILEGED},    ENDV_CALL_PRIVILEGED); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CALL_PRIVILEGED},ENDV_CALL_PRIVILEGED); }
114         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.CALL_PHONE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    CALL_PHONE},    ENDV_CALL_PHONE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CALL_PHONE},ENDV_CALL_PHONE); }
115 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BROADCAST_WAP_PUSHWAP PUSH    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BROADCAST_WAP_PUSHWAP PUSH},    ENDV_BROADCAST_WAP_PUSHWAP PUSH); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BROADCAST_WAP_PUSHWAP PUSH},ENDV_BROADCAST_WAP_PUSHWAP PUSH); }
116         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BROADCAST_STICKY    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BROADCAST_STICKY},    ENDV_BROADCAST_STICKY); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BROADCAST_STICKY},ENDV_BROADCAST_STICKY); }
117         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BROADCAST_SMS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BROADCAST_SMS},    ENDV_BROADCAST_SMS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BROADCAST_SMS},ENDV_BROADCAST_SMS); }
118         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BROADCAST_PACKAGE_REMOVED    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BROADCAST_PACKAGE_REMOVED},    ENDV_BROADCAST_PACKAGE_REMOVED); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BROADCAST_PACKAGE_REMOVED},ENDV_BROADCAST_PACKAGE_REMOVED); }
119 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BRICK    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BRICK},    ENDV_BRICK); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BRICK},ENDV_BRICK); }
120         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BLUETOOTH_PRIVILEGED    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BLUETOOTH_PRIVILEGED},    ENDV_BLUETOOTH_PRIVILEGED); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BLUETOOTH_PRIVILEGED},ENDV_BLUETOOTH_PRIVILEGED); }
121         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BLUETOOTH_ADMIN    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BLUETOOTH_ADMIN},    ENDV_BLUETOOTH_ADMIN); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BLUETOOTH_ADMIN},ENDV_BLUETOOTH_ADMIN); }
122         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BLUETOOTH    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BLUETOOTH},    ENDV_BLUETOOTH); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BLUETOOTH},ENDV_BLUETOOTH); }
123         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_WALLPAPER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_WALLPAPER},    ENDV_BIND_WALLPAPER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_WALLPAPER},ENDV_BIND_WALLPAPER); }
124         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_VPN_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_VPN_SERVICE},    ENDV_BIND_VPN_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_VPN_SERVICE},ENDV_BIND_VPN_SERVICE); }
125         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_TEXT_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_TEXT_SERVICE},    ENDV_BIND_TEXT_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_TEXT_SERVICE},ENDV_BIND_TEXT_SERVICE); }
126         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_REMOTEVIEWS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_REMOTEVIEWS},    ENDV_BIND_REMOTEVIEWS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_REMOTEVIEWS},ENDV_BIND_REMOTEVIEWS); }
127         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_PRINT_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_PRINT_SERVICE},    ENDV_BIND_PRINT_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_PRINT_SERVICE},ENDV_BIND_PRINT_SERVICE); }
128         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_NOTIFICATION_LISTENER_SERVICE},    ENDV_BIND_NOTIFICATION_LISTENER_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_NOTIFICATION_LISTENER_SERVICE},ENDV_BIND_NOTIFICATION_LISTENER_SERVICE); }
129         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_NFC_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_NFC_SERVICE},    ENDV_BIND_NFC_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_NFC_SERVICE},ENDV_BIND_NFC_SERVICE); }
130         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_INPUT_METHOD    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_INPUT_METHOD},    ENDV_BIND_INPUT_METHOD); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_INPUT_METHOD},ENDV_BIND_INPUT_METHOD); }
131         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_DEVICE_ADMIN    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_DEVICE_ADMIN},    ENDV_BIND_DEVICE_ADMIN); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_DEVICE_ADMIN},ENDV_BIND_DEVICE_ADMIN); }
132         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_APPWIDGET    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_APPWIDGET},    ENDV_BIND_APPWIDGET); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_APPWIDGET},ENDV_BIND_APPWIDGET); }
133         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BIND_ACCESSIBILITY_SERVICE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BIND_ACCESSIBILITY_SERVICE},    ENDV_BIND_ACCESSIBILITY_SERVICE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BIND_ACCESSIBILITY_SERVICE},ENDV_BIND_ACCESSIBILITY_SERVICE); }
134 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.AUTHENTICATE_ACCOUNTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    AUTHENTICATE_ACCOUNTS},    ENDV_AUTHENTICATE_ACCOUNTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.AUTHENTICATE_ACCOUNTS},ENDV_AUTHENTICATE_ACCOUNTS); }
135         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ADD_VOICEMAIL    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ADD_VOICEMAIL},    ENDV_ADD_VOICEMAIL); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ADD_VOICEMAIL},ENDV_ADD_VOICEMAIL); }
136         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCOUNT_MANAGER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCOUNT_MANAGER},    ENDV_ACCOUNT_MANAGER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCOUNT_MANAGER},ENDV_ACCOUNT_MANAGER); }
137         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_WIFI_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_WIFI_STATE},    ENDV_ACCESS_WIFI_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_WIFI_STATE},ENDV_ACCESS_WIFI_STATE); }
138 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_SURFACE_FLINGER    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_SURFACE_FLINGER},    ENDV_ACCESS_SURFACE_FLINGER); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_SURFACE_FLINGER},ENDV_ACCESS_SURFACE_FLINGER); }
139         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_NETWORK_STATE    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_NETWORK_STATE},    ENDV_ACCESS_NETWORK_STATE); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_NETWORK_STATE},ENDV_ACCESS_NETWORK_STATE); }
140 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_MOCK_LOCATION    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_MOCK_LOCATION},    ENDV_ACCESS_MOCK_LOCATION); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_MOCK_LOCATION},ENDV_ACCESS_MOCK_LOCATION); }
141         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_LOCATION_EXTRA_COMMANDS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_LOCATION_EXTRA_COMMANDS},    ENDV_ACCESS_LOCATION_EXTRA_COMMANDS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_LOCATION_EXTRA_COMMANDS},ENDV_ACCESS_LOCATION_EXTRA_COMMANDS); }
142         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_FINE_LOCATION    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_FINE_LOCATION},    ENDV_ACCESS_FINE_LOCATION); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_FINE_LOCATION},ENDV_ACCESS_FINE_LOCATION); }
143         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_COARSE_LOCATION    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_COARSE_LOCATION},    ENDV_ACCESS_COARSE_LOCATION); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},ENDV_ACCESS_COARSE_LOCATION); }
144         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.ACCESS_CHECKIN_PROPERTIES    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    ACCESS_CHECKIN_PROPERTIES},    ENDV_ACCESS_CHECKIN_PROPERTIES); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_CHECKIN_PROPERTIES},ENDV_ACCESS_CHECKIN_PROPERTIES); }
145         if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.BODY_SENSORS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    BODY_SENSORS},    ENDV_BODY_SENSORS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.BODY_SENSORS},ENDV_BODY_SENSORS); }
146 //        if (ActivityCompat.shouldShowRequestPermissionRationale(this,Manifest.permission.READ_CELL_BROADCASTS    )) { System.err.println("向用户提供请求权限理由"); Snackbar.make(mLayout, R.string.camera_access_required,Snackbar.LENGTH_INDEFINITE) .setActionTextColor(Color.YELLOW) .setAction(R.string.gook, new View.OnClickListener() { @ Override public void onClick(View view) {System.err.println("请求去打相机权限:"); ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.    READ_CELL_BROADCASTS},    ENDV_READ_CELL_BROADCASTS); } }) .show();  } else {System.err.println("无法打开相机");    Snackbar.make(mLayout, R.string.camera_unavailable, Snackbar.LENGTH_SHORT).show(); System.err.println("发送请求结果:"); ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.READ_CELL_BROADCASTS},ENDV_READ_CELL_BROADCASTS); }

 

标签:请求,err,ENDV,Snackbar,System,用户,println,权限,string
来源: https://www.cnblogs.com/endv/p/12163648.html