Answers for "how to get contacts permission in android"

1

how to get contacts permission in android

if( getApplicationContext().checkSelfPermission( Manifest.permission.READ_CONTACTS ) != PackageManager.PERMISSION_GRANTED )
     ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.READ_CONTACTS}, resultValue);
Posted by: Guest on June-09-2021

Code answers related to "how to get contacts permission in android"

Browse Popular Code Answers by Language