Bump - Not sure how to ensure that my view has input focus. If it
accepts touch events, doesn't that mean it IS in focus?
It seems to not accept keyboard events either.  Any input?

Thanks,
Ayan

On Feb 2, 1:01 pm, Dianne Hackborn <hack...@android.com> wrote:
> Trackball events are dispatched to the focused view, make sure your view has
> input focus.
>
>
>
> On Sun, Feb 1, 2009 at 4:38 PM, Ikon <ayanafr...@gmail.com> wrote:
>
> > Hi,
>
> > I have an activity which then set's a custom View class. Most of my
> > app's functionality is coded into the View. I detect motion events
> > from this class. However, when I overrided "onTrackballEvent", it
> > never gets called.
>
> > I then inserted this same method into my Activity class, and the
> > trackball event got processed. However, I need to process this event
> > in my View class (where my main update loop is).
>
> > I tried returning false from my Activity class onTrackballEvent
> > function, to see if it would then pass the Event to the View's event
> > function, but this did not work. I also tried implementing a onKeyUp
> > event in the View, to see if it got called if i returned false from
> > the Activity class, but it did not work.
>
> > Any help appreciated!
>
> > Thanks,
> > Ayan
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to