getSelectedItem() returns the listview.

On Apr 1, 7:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Use listview.getSelectedItem() or something like that to retrieve the
> dataobject related to the selected item.
>
> On Apr 1, 1:47 pm, yun <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have a listview of "recipes" which is dynamically populated from a
> > database of recipes. If I select a recipe, it should take me to a page
> > containing that recipe's details. However, since its dynamically
> > populated, there is no id on the"recipe" textview, so I wouldn't know
> > which recipe was actually selected. Currently I'm using this hacky
> > method of counting the number of times the user pushes Keypad_up/down,
> > but there has got to be a better way to do this.
>
> > Thanks,
> > yun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to