permission.READ_CONTACTS does not seem to work

前端 未结 6 2071
一向
一向 2021-02-18 17:10

I\'m working on a simple app that browses through the user\'s contacts. Unfortunately I keep getting the following error:

java.lang.SecurityException: Permission         


        
6条回答
  •  悲&欢浪女
    2021-02-18 17:57

    I ran into this issue today and none of the above fixes worked for me.

    What the issue ended up being had to do with my Eclipse. What I had written in the manifest.xml and what was in the Permissions tab weren't the same. I had the READ_CONTACTS permission in my manifest.xml, but READ_PROFILE was in it's place under my permission's tab.

    I know this is an old thread, but hopefully if someone has the same issue I did they'll stumble across this.

    Thanks!

提交回复
热议问题