Hi,
I need help to update contact numbers. Does anyone know how I can update
contact numbers that I could recover? I looked and saw a lot about RAW_ID,
_ID but I'm not getting used.
I'm recovering contacts with the code below:
Cursor phones =
> getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
>
> null,null, null, null);
> while (phones.moveToNext()) {
> String name =
> phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));
>
> String phoneNumber =
> phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
>
> String idContato =
> phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.RAW_CONTACT_ID));
Would you like to update each chosen number. Each would receive a different
value, so I know I should use some _ID Android.
Thank you for your help.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en