标签:读取联系人错误
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" />
本文出自 “清甘茶” 博客,请务必保留此出处http://shunshuncon.blog.51cto.com/8232441/1661525
标签:读取联系人错误
原文地址:http://shunshuncon.blog.51cto.com/8232441/1661525