我在我的应用程序中实现了Dexter.它适用于CAMERA,EXTERNAL STORAGE和INTERNAL STORAGE许可.我想和Dexter一起使用PHONE_CALL许可.当我打电话给这样的电话时:
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + strNum)); startActivity(callIntent);
然后startActivity
显示警告Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException less... (Ctrl+F1)
我不明白我实施了Dexter然后为什么startActivity
要获得自我许可?