I can add to a db and list as a listview. When I click a list item using onListItemClick
, what statement do I need to get the value?
String[] from = new String[] {NotesDbAdapter.KEY_BODY, NotesDbAdapter.KEY_TITLE, NotesDbAdapter.KEY_NUMBER};
int[] to = new int[] {R.id.toptext, R.id.middletext, R.id.circle};
SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.row, notesCursor, from, to);
setListAdapter(notes);
//some other code
protected void onListItemClick(ListView l, View v, int position, long thisID)
{
super.onListItemClick(l, v, position, thisID);
**String **resposponseid** = Activity2.getData();**
}
I have responseid for every row unique which I want to use when I click on list position. So how to get responseid when I click on list?