Hi, You should use the onItemSelected() method of the ListView, which is invoked when you select an item with keypad.
Sample code: http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/view/List7.html Thanks, Megha On Tue, Apr 1, 2008 at 2:42 AM, Salsa bob <[EMAIL PROTECTED]> wrote: > > I have this Listview with 5 elements in it, and when I select and pick > one of them, I want to change to a different screen, depending on > which item I picked. However, onListItemClick seems to only detect > touchpad clicks, and doesn't do anything if I try to select and pick > an item with the keypad. What's a good method to return the position > of the focus when it clicks down on something? Onkey can only get back > the entire listview, and not the element in it. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

