I completed the Notepad Tutorial Part 2 and everythings works fine. But there is one thing I just can´t figure out why it is working ;)
The onListItemClick callback retreives the parameters:
- ListView l - Check
- View v - Check
- position - Position of the item the user clicked on, starting with a zero based index (right?)
- id - Row ID of the item the user clikced on
This seems to be the same rowId like used in the SqlLite DB table "notes"...but where the hell does the ListActivity know about that we use this column as row Id? I didn´t find any mapping between the List and the DB table, just the Cursor we bound in fillData. But there is only a mapping between the Title column and the text1 id in the UI. So where is the rowId binding? And what if I wanted to change that binding to another source?
Thx in advance Alex