i have implemented listviewer. listviewer filled values. when user selects value listview, value should compared database. question is, how can selected value.
list.addselectionlistener(new selectionlistener() { public void widgetselected(selectionevent e) { dbconnection.readcommitmessagetable(list.gettooltiptext().tostring()); system.out.println(list.getdata().tostring()); } });
does know how can value?
try using oncontextitemselected function
you can find more info here: http://developer.android.com/reference/android/app/activity.html#oncontextitemselected(android.view.menuitem)