[android-developers] Dispatch KeyDown on Listview

2011-04-05 Thread mihoelzl
Hi, I want to manually dispatch a key down event in a listactivity. This works when I just add the Event to the Activity by: this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN)); this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_DOWN));

[android-developers] Send Key Events to my Activity

2011-04-04 Thread mihoelzl
Hi, I am trying to implement a small soft keyboard which should simulate HW key events. There should be an Up-Key, a Down-Key and an OK and Cancel Button. I made my own InputMethodService which is also defined in the Manifest file: service android:name=MyInputMethod