public void delete ( Article article ) { SQLiteDatabase db = this . getWritableDatabase ( ) ; db . delete ( TABLE_ARTICLES , KEY_ID + " = ?" , new String [ ] { String . valueOf ( article . getId ( ) ) } ) ; db . close ( ) ; }
Removes a specified Article from this database based on its ID value .