I'm trying to implement an input method service that receives intents
sent by a remote client, and in response to those sends an appropriate
KeyEvent.
I'm using in the input method service this method
private void keyDownUp(int keyEventCode) {
getCurrentInputConnection().sendKeyEvent(
new KeyEvent(KeyEvent.ACTION_DOWN, keyEventCode));
getCurrentInputConnection().sendKeyEvent(
new KeyEvent(KeyEvent.ACTION_UP, keyEventCode));
}
to send KeyEvents as in the Simple Sofykeyboard Sample, and it works
in the home, in Activities... but it doesn't works when a Dialog or
the menu of a Spinner is in foreground.
The events is sent to the parent activity behind the Dialog.
Is there any way to send keys and control the device like using the
hardware keys from an input method?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.