Multiple choice

Which of the following is/are the correct syntax to delete records using the Content Resolver?

  1. getContentResolver().delete(myRowUri, null);

  2. getContentResolver().delete(myRowUri);

  3. getContentResolver().delete(myRowUri, null, null);

  4. getContentResolver().delete(MyProvider.CONTENT_URI, where, null);

  5. Both (3) and (4)

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is the correct option.