public int updateNote(Note note){
  SQLiteDatabase db=getWritableDatabase();
  String spannableAsHtml=Html.toHtml(note.getSpannable());
  String date=dt.format(new Date());
  ContentValues values=new ContentValues();
  values.put(KEY_IMAGE,BitmapConverter.getBytes(note.getImage()));
  values.put(KEY_DATE_UPDATED,date);
  values.put(KEY_SPANNABLE_NOTE,spannableAsHtml);
  values.put(KEY_NOTE_TITLE,note.getTitle());
  return db.update(TABLE_NOTES,values,KEY_ID + "=?",new String[]{String.valueOf(note.getId())});
}

public int updateNote ( Note note ) { SQLiteDatabase db = getWritableDatabase ( ) ; String spannableAsHtml = Html . toHtml ( note . getSpannable ( ) ) ; String date = dt . format ( new Date ( ) ) ; ContentValues values = new ContentValues ( ) ; values . put ( KEY_IMAGE , BitmapConverter . getBytes ( note . getImage ( ) ) ) ; values . put ( KEY_DATE_UPDATED , date ) ; values . put ( KEY_SPANNABLE_NOTE , spannableAsHtml ) ; values . put ( KEY_NOTE_TITLE , note . getTitle ( ) ) ; return db . update ( TABLE_NOTES , values , KEY_ID + "=?" , new String [ ] { String . valueOf ( note . getId ( ) ) } ) ; }
method used to update note ' s text / format
