Hi all,
The following code works fine in the JDE simulator (v4.5.0.44) but fails (call is never disconnected) in a v4.5.0.55 BB8310.
Code:
EventInjector.KeyCodeEvent pressEndKey =
new EventInjector.KeyCodeEvent(
KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END,
KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
EventInjector.KeyCodeEvent releaseEndKey =
new EventInjector.KeyCodeEvent(
KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END,
KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
try {
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);
} catch (Exception ex) {
ex.printStackTrace();
} As noted in other posts, I played around with some Thread.sleep before and between the invokeEvents, no change.
Any suggestions?
Any better way to disconnect call other than simulate button events?
Cheers,
-me