This is the normal and intended behavior. Focus appears only when the user uses the trackball/dpad. When the user touches the screen, the focus disappears.
On Thu, Jan 14, 2010 at 10:33 PM, Zsolt Vasvari <zvasv...@gmail.com> wrote: > I have a ListView in a ListActivity that starts another Activity when > a list item is clicked. The 2nd Activity is a Theme.Dialog, but I > don't think that matters for this purpose. > > I would like the visible focus restored to the ListView when I close > the 2nd Activity. Currently,when I come back, I have to hit the > trackball once to give focus to the ListView and then hit it again to > move around in the list. > > I tried the obvious getListView().requestFocus() from onResume(). I > also tried saving the current focused view using getListView > ().findFocus() before starting the 2nd Activity, but neither of these > methods work. > > I am using API Level 7 in the Emulator. > > Can anyone help? > > Thanks, > Zsolt Vasvari > > -- > 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 > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them
-- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en