If you are using onListItemClick it will give you the ListView for that selected item which you can access as a view if you cast it to whatever view you are using or use the id passed to index into your cursor and get the data out.
TextView text = (TextView)(l.getChildAt(position)); On Apr 13, 4:58 pm, Ram <[EMAIL PROTECTED]> wrote: > Hi, I'm using a simplecursoradapter to map a db cursor to a listview > > The listview displays "n" rows for "n" rows in the cursor. > > When the user selects a listview entry, I can use > listview.getSelectedItemId() to get the "_id" value of the selected > entry. > > However, I couldn't find an api to get the text of the selected > listview element. > This seems like a fairly easy thing to do, but I'm not sure what I'm > overlooking here. > > Does anyone know how to get the text displayed by the selected > listview item. --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

