I have a list in my app.
When a user touches a list item with their finger, the onListItemClick handler fires and I have it opening a new Activity.
However, when a user uses the trackball/pad to click, I want to perform some different functionality. I’ve overrode onTrackballEvent and everything works perfectly fine in the emulator’s trackball mode.
Unfortunately, when testing on the Samsung Moment, clicking the trackpad fires the onListItemClick handler, not the onTrackballEvent handler.
Does anyone know why? Does anyone have a way around this?
In listview you can setOnKeyListener and do you code when keycode is KeyEvent.KEYCODE_DPAD_CENTER
It work for me. Hope this will give you some idea