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
Highlighted
New Developer
Posts: 4
Registered: ‎08-23-2009
My Device: Not Specified

enableKeyUpEvents(true) resets to false

Hi Guys,

 

Prob: My application has 2 screens. The first screen uses KeyUp events, so I explicitly set it to true at the application level using enableKeyUpEvents(true).

 

 

public static void main(final String[] args) {
    final cycledemo demo = new cycledemo();
    demo.enableKeyUpEvents(true);
    demo.enterEventDispatcher();

 

public static void main(final String[] args)

{    final cycledemo demo = new cycledemo();  

   demo.enableKeyUpEvents(true);    

   demo.enterEventDispatcher();

}

 

 

Based on a search result list in 1st screen, I navigate to the second screen, finish my activities in the second screen and return back to first screen and voila the enableKeyUPEvents is set to false!!! 

 

Possible solution: The only way to reset this to true seems to be, to push the screen to the event loop again 

     UiApplication.getUiApplication().pushScreen(screenname). But I don't want to do this, as I loose my list here and the user has to search again.

 

 

Required solution:  I don't want to push the screen to the app stack again, but still the KeyUp events should be enabled. 

 

Pls help. This is urgent

 

Regards,

Roh

New Developer
Posts: 4
Registered: ‎08-23-2009
My Device: Not Specified

Re: enableKeyUpEvents(true) resets to false

Hi Mark (from Blackberry)

 

Any suggestions here?

 

Roh