Hey all,

I'm having the hardest time deleting either phone numbers or addresses
or the Phones and ContactMethods content providers, respectively.  I
have no problem inserting anything, nor do I have any problem deleting
actual People.

I've tried numerous statements, none of which work properly,
including:

For phones:
int count = _resolver.delete(Phones.CONTENT_URI,Phones.PERSON_ID
+"="+id,null)
int count = _resolver.delete(Uri.parse("content://contacts/
phones/"+id), null, null);

For addresses:
int count =
_resolver.delete(ContactMethods.CONTENT_URI,ContactMethods.PERSON_ID
+"="+id,null)
int count = _resolver.delete(Uri.parse("content://contacts/
contact_methods/"+id),null, null);

None of these statements work properly.

Can somebody help out?  Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to