读取联系人错误

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=content://com.android.contacts/contacts/lookup/3056r178-3B5576746DC2.2073r314-3B5576746DC2/1957 (has extras) }} to activity {com.example.criminaintent/com.example.criminaintent.CrimePagerActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/contacts/lookup/3056r178-3B5576746DC2.2073r314-3B5576746DC2/1957 from pid=31282, uid=10114 requires android.permission.READ_CONTACTS, or grantUriPermission()



    此错误是在读取手机联系人的时候发生的错误,错误原因是没加联系人权限:::

<uses-permission android:name="android.permission.READ_CONTACTS" />

你可能感兴趣的:(读取联系人错误)