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
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

Show BlackBerry main screen

 

Hello,

 

I'm looking for API\code sample that i can use to show the BlackBerry main screen (ribbon)

from my GUI as a response for button press, does anyone know of such code?

Thanks.

 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Show BlackBerry main screen

Check with the HomeScreen class..  but I dn't think there are any API to display the HomeScreen in application.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

Re: Show BlackBerry main screen

 

I tried this class and it doesn't have the API i need

BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Show BlackBerry main screen

If the ribbon is behind your application, you could use the UiApplication.requestBackground() method to move your application to the background.

 

This doesn't guarantee the ribbon will be shown.  It will just show whatever application is below yours.

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
Developer
Posts: 216
Registered: ‎09-11-2008
My Device: 9000(Bold)

Re: Show BlackBerry main screen

I've tried using the CodeModuleManager and iterate over the modules till i found the ribbon module but there are several

and i didn't know which one to use and do i need to supply it inoout arguments, do yo think it's possible?

 

Developer
Posts: 133
Registered: ‎07-20-2009
My Device: Not Specified

Re: Show BlackBerry main screen

If the home screen just behind your application, you may try 

 

      UiApplication.getUiApplication().invokeLater(new Runnable(){

        public void run(){ 

UiApplication.getUiApplication.requestBackground();

}

});