• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps getContentResolver().delete(Contacts.Phones.CONTEN T_URI, null

leverd

Lurker
May 19, 2010
2
0
I want to delete multiple phone numbers in a single query. I'm using the following code.

Code:
getContentResolver.delete(Contacts.Phones.CONTENT_FILTER_URL, null, null);

I will be adding where/select args to limit what I delete, but even the above throws an exception.

java.lang.UnsupportedOperationException: Cannot delete that URL: content://contacts/phones

Shouldn't it be possible to do this? I'm using v1.5.

Thanks for any help!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones