And then I have this code to detect my click on the list
- Code: Select all
protected void onListItemClick(ListView l, View v, int position, long id)
I want to get the data string associated to my click.
I checked the api reference.
Listview extends AdapterView where getSelectedItem() is defined.
But when I run the code, I get an error with getSelectedItem(). And when I checked the API for ListView, getSelectedItem() is not in the inherited methods.
How is that possible?