📜  如何在 android 中获取联系人权限 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:38.446000             🧑  作者: Mango

代码示例1
if( getApplicationContext().checkSelfPermission( Manifest.permission.READ_CONTACTS ) != PackageManager.PERMISSION_GRANTED )
     ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.READ_CONTACTS}, resultValue);