android edit contact

后端 未结 4 1421
余生分开走
余生分开走 2021-01-11 13:03

hi im trying to add a phone number to an existing contact on android 2.1. Im currently using:

ContentValues values = new ContentValues();
values.put(Phone.RA         


        
相关标签:
4条回答
  • 2021-01-11 13:33

    Insert into Data.CONTENT_URI instead of Phone.CONTENT_URI also insert the Data.MIMETYPE column with Phone.CONTENT_ITEM_TYPE.

    0 讨论(0)
  • 2021-01-11 13:42

    Have you set the correct permissions in the AndroidManifest.xml? As far as I know the access to the personal information (contacts) is restricted by default.

    see here for more about the permission system in android

    0 讨论(0)
  • 2021-01-11 13:50

    You also might want to check your installed apps vs program memory. My Droid Eris worked fine on contacts and from just about any contacts aware application, too.

    Until I went past some point of memory load. VZW support 1st level did me no good, I had to insist on 2nd level support. Finally got an answer from someone who knew his spinach. He told be that I had too many apps on the phone, and that this was a known problem.
    Still have not cut my working set down enough to get contact edit working :-(

    /s/ BezantSoft

    0 讨论(0)
  • 2021-01-11 13:56

    http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/1/

    http://developer.android.com/resources/samples/ContactManager/src/com/example/android/contactmanager/ContactAdder.html

    check this both link it will help :)

    0 讨论(0)
提交回复
热议问题