Disable trackball programmatically

43 views Asked by At

Possible Duplicate:
Disable trackball click in Android

Is there any way to completely disable trackball interaction programmatically? I don't need my app to respond trackball events. At the moment I put

public boolean dispatchTrackballEvent(final MotionEvent ev) { return true; }

in my activity, but still sometimes i receive these event. Please help! Thanks in advance.

0

There are 0 answers