Tuesday, January 7, 2014

Delete all rows from Content Provider

A quick tip:

To delete all rows from content provider, call 

provider.delete(uri, "1", null);

URI - the authorities string of the provider
"1" - Returns the count
null - there are no selection arguments. All rows needs to be deleted. So, null.

No comments:

Post a Comment