Tuesday, April 8, 2014

Cattle seek advice ContentResolver.delete () inside Parameter Meaning


API: ContentResolver.delete (Uri url, String where, String [] selectionArgs)

To operate a contentprovider inside the database, delete a single record no problem. Then I want to remove the id> 5 of the N records? ?

Uri uri = Uri.parse ("content :/ / com.example.android_contentprovider.myContentProvider / person");

delete (url, "id>?", new String [] {"5"}); was an error! ! ! Did you have to delete the entire table has two parameters behind Did you pass null How can what use is it?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Including the update () method is the same that most of the examples I see online are the latter two parameters that pass NULL or if I understood what was wrong with seeking expert advice by the way how to delete N records

No comments:

Post a Comment