BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 07-18-2009, 02:29 PM   #1 (permalink)
New Member
Join Date: Jul 2009
Model: 8300
Carrier: VZ
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default MainScreen or FullScreen or Screen?

Please Login to Remove!

All the examples I see are typically 1-screen examples, and that example extends MainScreen.

Question #1:
Now that I'm writing an app with many screens, should they all be extending MainScreen, or FullScreen, or what exactly?

(I feel like I read somewhere that there should be only 1 MainScreen in your app - is that right?)

Question #2:
When I tried to change my screens to inherit from MainScreen to FullScreen, the menu functionality I had put in makeMenu() no longer worked -- the BB menu button and the context menu would not display, even though I overrode makeMenu().

PHP Code:
     * Set up the menu items.
public void makeMenu(Menu menuint instance)
MenuItem mnuDoIt = new MenuItem("Do it!"10010) {
void run()
RemoteApp.getInstance().pushScreen( new DoItScreen() );
Thanks folks! Sorry I'm such a newb.
Old 07-18-2009, 05:38 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

MainScreen provides some default functionality that you won't find in FullScreen.

There is no reason not to use MainScreen for all of your screens, unless some of the default functionality isn't what you want.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.