I have a ListView in my extended ListActivity class.
And then I have the following code to detect my click on the list
protected void onListItemClick(ListView l, View v, int position, long id)
{
Log.i("", ""+l.getSelectedItem().toString());
}
I want to get the data string associated to my click.
When I run the code, I get an error with getSelectedItem().
http://developer.android.com/reference/android/widget/ListView.html. getSelectedItem() is not method of ListView but it is defined in the superclass AdapterView. How is that possible? Rolling Eyes
2. Also , I'm not sure I understand this line: android.widget.AdapterView when it also inherits from android.view.ViewGroup isn't that multiple inheritance?