Skip to content

Instantly share code, notes, and snippets.

@smaspe
Created July 8, 2013 14:08
Show Gist options
  • Save smaspe/5949121 to your computer and use it in GitHub Desktop.
Save smaspe/5949121 to your computer and use it in GitHub Desktop.
delete method
public boolean delete(Context context) {
boolean result = context.getContentResolver().delete(
getPath(getClass(), id), null, null) > 0;
if (result) {
id = -1;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment