I am trying to add a CONTACT to android.
********************
ContentValues values = new ContentValues();
values.put(People.NAME, "ABC EFG");
Uri uri = getContentResolver().insert(People.CONTENT_URI, values);

Uri phoneUri = Uri.withAppendedPath(uri,
People.Phones.CONTENT_DIRECTORY);

values.clear();
values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE);
values.put(People.Phones.NUMBER, "8005001234");
getContentResolver().insert(phoneUri, values);
**********************

The contacts gets added. But when I see it in my phone. The contacts
gets added as a google contact and it is not shown under "Contacts"
tab. It is shown under Groups->Not Assigned  only. How Can a contacts
be added as a simple phone contact and not as a google contact? Also
it should be visible under "Contacts" tab.

Can anyone please help me out?

Thanks

-- 
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

Reply via email to