Contact list permission

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Jul 15, 2017 12:43:16 PM via Website

Hi
I am developing program that read from contact list.
When I Run the application I am receive exception

"ProcessRecord requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS"

I have added in AndriodManifest.xml file


And this not solve the problem .
Is there any idea to solve this problem?

d

  • Forum posts: 54

Jul 17, 2017 10:33:41 AM via Website

Reading (and writing) contacts is in dangerous permissions list so to access that you have to ask for permission during runtime. It is not enough to add these lines on your manifest file. To know how to ask for permission during runtime, read here: https://developer.android.com/training/permissions/requesting.html
You can read more about dangerous permissions here: https://developer.android.com/guide/topics/permissions/requesting.html
If it won't work please post your AndroidManifest.xml and some code which reads the contacts so we can get better understanding about your problem.