1gravity / Android-ContactPicker

A beautifully designed component to pick one or several contacts (including groups) from the Android contacts list
Apache License 2.0
66 stars 33 forks source link

Read_contacts permission issue #3

Closed nonozelmar closed 8 years ago

nonozelmar commented 8 years ago

Hi , i tried to implement your library into my project but I get this log : E/ContactPickerActivity: Contact permission hasn't been granted to this app, terminating.: uid 10061 does not have android.permission.READ_CONTACTS. even thought i added the line <uses-permission android:name="android.permission.CONTACTS" /> to my Android manifest file.

Thanx in advance for your help.

SDK used : 23 Build : skd_google_phoneX86_64-userdebug 6.0 MASTER 3038907 test-keys Device : Samsung s5 simulator

1gravity commented 8 years ago

On Android 6 and higher you need to request the contacts permission at run-time: https://developer.android.com/training/permissions/requesting.html. The demo app shows how this can be done.