BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-18-2009, 03:29 PM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8300
PIN: N/A
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) {
            public 
void run()
            {                
                
RemoteApp.getInstance().pushScreen( new DoItScreen() );
            }
        };
        
menu.add(mnuDoIt);
        
        
super.makeMenu(menuinstance);
     } 
Thanks folks! Sorry I'm such a newb.
Offline  
Old 07-18-2009, 06:38 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

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.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.