Trying to write and update contacts

前端 未结 3 1890
梦谈多话
梦谈多话 2021-01-13 23:34

I am trying to write and then to update contacts using URI content://com.android.contacts/contacts and I get a RunTime Error: Uid 10101 does not have permission to uri con

相关标签:
3条回答
  • 2021-01-14 00:02

    you are using spermission that is not meaning try to change the permission in your menifest

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

    Full set of permissions flags can be found on Android reference pages.

    0 讨论(0)
  • 2021-01-14 00:03

    Check your MANIFEST file..

    try adding like this..

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

    it is uses-permission not uses-spermission...

    Hope this helps...

    0 讨论(0)
  • 2021-01-14 00:12

    just look at your permission:

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

    its spelling mistake there: remove s before permission word:

    <uses-permission
                    android:name="android.permission.WRITE_CONTACTS" />
    
    0 讨论(0)
提交回复
热议问题