Created
July 8, 2013 14:08
-
-
Save smaspe/5949121 to your computer and use it in GitHub Desktop.
delete method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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