auto add 2 time after click add
i try to make a simple note. after i click save in add new note, they save
as 2 note same content. it's mean they save 2 time. i dont know why.
maybe problem here, when i try to get rowID:
mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(NotesDbAdapter.KEY_ROWID);
if (mRowId == null) {
Bundle extras = getIntent().getExtras();
mRowId = extras != null ? extras.getLong(NotesDbAdapter.KEY_ROWID)
: null;
}
my code here: http://www.mediafire.com/download/w1kyy7spc522za9/Notepad.zip
No comments:
Post a Comment