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
New Developer
Posts: 49
Registered: ‎05-14-2009
My Device: Not Specified
Accepted Solution

My application is finishing after I close a screen...

Hi!
After I press the close menu my application is finishing. Is there a way to close the screen but not to exit the application?
Thanks
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: My application is finishing after I close a screen...

The usual method is to override close on the main screen of the app and do a

 

UiApplication.getUiApplication.requestBackground();

 

The default MainScreen close implementation will exit your application if it is the last screen on the stack.

New Developer
Posts: 49
Registered: ‎05-14-2009
My Device: Not Specified

Re: My application is finishing after I close a screen...

Thousand thanks! It works.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: My application is finishing after I close a screen...

Alexey, please mark the Peter's post as solution.