Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
prajith
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

Enter Key behaves differently in Simulator and phone ( using EventInjector)?

[ Edited ]

I  used  EventInjector for closing one of the popup window in my application.

 

In the simulator this one will properly worked but in the real phone it displays one popup screen for changing the language (BB storm phone) 

 

The following codes where used for the same.

But the result is same.  

 

 

EventInjector.KeyCodeEvent ev = new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN, (Characters.ENTER), KeypadListener.STATUS_ALT,100);

 

 

EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN,((char)Keypad.KEY_ENTER),KeypadListener.STATUS_ALT, 100);

EventInjector.invokeEvent(ev);

 

 

I alredy enabled the event injector for the application.

 

For other keys and events like track ball scroll this properly worked without any problem.

 

You have any idea about this ? 

Message Edited by prajith on 08-19-2009 05:26 AM
Please use plain text.
Administrator
MSohm
Posts: 14,229
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Enter Key behaves differently in Simulator and phone ( using EventInjector)?

What BlackBerry handheld software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

What type of window are you dismissing?  Can you provide the code for that as well?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
prajith
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

Re: Enter Key behaves differently in Simulator and phone ( using EventInjector)?

[ Edited ]

Hi,

Thank you for your response ,

 

The API vertion  is 4.7  (Along with the eclipse plugin)

 

I fixed it with Track Ball click listener(Click followed by un click).That one worked with out any issue.

 

I tried it in the black berry application popup list (Profile switching window)

 

 

 

 

 

Message Edited by prajith on 08-21-2009 11:29 PM
Please use plain text.