11-03-2008, 11:30 PM
|
#1 (permalink)
|
| New Member
Join Date: Nov 2008 Model: 9000 PIN: N/A Carrier: Idea
Posts: 2
Post Thanks: 0 Thanked 0 Times in 0 Posts
| Event Ejection is not working on Simulator Please Login to Remove! I am trying to open the message composer using my application with the help of event ejection.
I have written this code for opening the main menu of the simulator -
EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEv ent.KEY_DOWN,
Characters.CONTROL_MENU , KeypadListener.STATUS_NOT_FROM_KEYPAD, 200));
EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEv ent.KEY_UP,
Characters.CONTROL_MENU , KeypadListener.STATUS_NOT_FROM_KEYPAD, 200));
and i have written code to go back or to close the any running application -
EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEv ent.KEY_DOWN,
Characters.ESCAPE , KeypadListener.STATUS_NOT_FROM_KEYPAD, 200));
EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEv ent.KEY_UP,
Characters.ESCAPE , KeypadListener.STATUS_NOT_FROM_KEYPAD, 200)); but both are not performing any functioning..
I have also used the TrackwheelEvent that is working fine but in case of keys it is not doing any thing.
I have to do any thing extra for performing the key pressed event using EventEjection???
Last edited by amitbansal3 : 11-04-2008 at 05:26 AM.
|
| Offline
| |