[android-developers] Re: Track Ball Problem...

2009-03-31 Thread TjerkW
I think the only way is to extend dispatchTrackballEvent(MotionEvent e)... there is not View.TrackballListener class strange. On 27 mrt, 16:13, TjerkW tje...@gmail.com wrote: How do you register an activity to get trackball events? On 25 mrt, 18:31, David Turner di...@android.com wrote:

[android-developers] Re: Track Ball Problem...

2009-03-27 Thread TjerkW
How do you register an activity to get trackball events? On 25 mrt, 18:31, David Turner di...@android.com wrote: You need to register your activity to the system to tell it that you can handle trackball events directly. If you don't, then the system will emulate the events with key down/up

[android-developers] Re: Track Ball Problem...

2009-03-27 Thread ANKIT SOMANI
Hi, Thanks David. OnKeyDown() OnKeyUp() worked for me. Thanks. 2009/3/27 TjerkW tje...@gmail.com How do you register an activity to get trackball events? On 25 mrt, 18:31, David Turner di...@android.com wrote: You need to register your activity to the system to tell it that you can

[android-developers] Re: Track Ball Problem...

2009-03-25 Thread David Turner
You need to register your activity to the system to tell it that you can handle trackball events directly. If you don't, then the system will emulate the events with key down/up events. I don't know the API to do that. By the way, you can press Delete to enable track-ball mode in the emulator (or