小编Vis*_*dav的帖子

PHONE_CALL权限在Dexter中无效

我在我的应用程序中实现了Dexter.它适用于CAMERA,EXTERNAL STORAGE和INTERNAL STORAGE许可.我想和Dexter一起使用PHONE_CALL许可.当我打电话给这样的电话时:

Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + strNum));
startActivity(callIntent);
Run Code Online (Sandbox Code Playgroud)

然后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要获得自我许可?

android android-intent android-permissions android-phone-call

5
推荐指数
1
解决办法
516
查看次数