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
sreid55
Posts: 41
Registered: ‎09-28-2009
My Device: Not Specified
Accepted Solution

onClose - Go to home screen?

Hi-

I'd like the exit/esc button in my app (and the Close menu item) to return the user to the home screen instead of closing the app.  

I'll create a separate menu item to actually close the app.  

I know I can override onClose, but what do I do in onClose to bump the user to the home screen, leaving my app running?

 

Thanks!

 

Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: onClose - Go to home screen?

Call  UiApplication.requestBackground()

 

Developer
sreid55
Posts: 41
Registered: ‎09-28-2009
My Device: Not Specified

Re: onClose - Go to home screen?

Bingo! Thanks!