android ListView dynamic onitemclick

view full story

http://stackoverflow.com – I am creating a ListView dynamically inside of the adapter of a gridview. So what happens is, the gridview contains listviews in its cells. Inside of the gridview adapter, I create the listview with its own adapter. This works fine, however, I need to write a onitemclick listener for the listView to access the position of each of its items. Currently I am writing the onitemclick listener inside of the gridview adapter right after I have created the listview, however I am not sure how to gain access to the listview items. Please help. Here is the code where I create the listview, inside of th (HowTos)