we need the cursor in onListItemClick()
as we need to retrive the title and body from the database and pass it to the edit class![]()
mDbHelper we use it as it is a refrence to the object mDb in class NotesDbAdapter
function delete note u can find its implementation in class NotesDbAdapter which will make delete for one row sepcified from the interface ![]()
--- On Thu, 5/8/08, sunil <[EMAIL PROTECTED]> wrote:
From: sunil <[EMAIL PROTECTED]> Subject: [android-beginners] Notepadv2 - please update the tutorials To: "Android Beginners" <[email protected]> Date: Thursday, May 8, 2008, 6:56 PM
Hi,
Maybe it an error on my side, but I think the Notepadv2 tutorial is
not upto date. I am not sure if the following is correct:-
case DELETE_ID:
mDbHelper.deleteNote(getListView().getSelectedItemId());
it should be deleteRow(..) and moreover it is not mDb..() but
dbHelper(...
also in the OnListItemClick(..) , we do not need the Cursor.
Please update me on correctness of the tutorial.
Sunil
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-no...
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---
|