调用ActivityCompat.requestPermissions不会显示UI对话框.
ActivityCompat.requestPermissions(MainActivity.this,new String[]{"Manifest.permission.READ_SMS"},REQUEST_CODE_ASK_PERMISSIONS);
但是,如果我将minSDKversion更改为23并运行
requestPermissions(new String[]{"android.permission.READ_SMS"},REQUEST_CODE_ASK_PERMISSIONS);
出现对话框.为什么? BTW.要在模拟器上运行它,模拟器将以API 23为目标.