I'm getting a call to my AdapterView.OnItemClickListener() when I touch an item in my ListView. The ListView (subclass of) is populated from a String[] data like this:
this.setAdapter(new ArrayAdapter(this.context, android.R.layout.simple_list_item_1, data)); Each row in the data holds an individual's first and last name along with their database ID#. Here is what I'm getting back from the call: parent The AdapterView where the click happened. view The view within the AdapterView that was clicked (this will be a view provided by the adapter) position The position of the view in the adapter. id The row id of the item that was clicked. Now, if I keep a representation of the data set somewhere else in an array, then I could index that array by the position parameter. I'd like to get the information from the parameters to the event handler though. Right now, the 'id' param mirrors the position parameter. Is that something that I can set somewhere? Otherwise, it's ugly, but I could glean the information from the text that is displayed in each row. How would I do that given the 'parent' or 'view' parameter. Thanks, Tobiah -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

