1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Development' started by leverd, May 19, 2010.

  1. leverd

    leverd Lurker
    Thread Starter

    I want to delete multiple phone numbers in a single query. I'm using the following code.

    Code (Text):
    1. 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!
     



    1. Download the Forums for Android™ app!


      Download

       
  2. leverd

    leverd Lurker
    Thread Starter

Loading...
Similar Threads - getContentResolver delete Contacts
  1. Foreee
    Replies:
    3
    Views:
    223
  2. Luke Aiden
    Replies:
    10
    Views:
    326
  3. nmkp17
    Replies:
    1
    Views:
    228
  4. rufford155
    Replies:
    9
    Views:
    451
  5. Luke Aiden
    Replies:
    7
    Views:
    526
  6. daniel2344
    Replies:
    7
    Views:
    588
  7. Distanceinator
    Replies:
    3
    Views:
    500
  8. RVDowning
    Replies:
    7
    Views:
    709
  9. MrJamesG
    Replies:
    0
    Views:
    240
  10. RVDowning
    Replies:
    12
    Views:
    1,122

Share This Page

Loading...