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
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, 05: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

REFU ELECTRONIK/SIEMENS SI4032-SP03/6SM1022-1SJ01 SIMOVERT BUS INTERFACE
$11.95
REFU ELECTRONIK/SIEMENS SI4032-SP03/6SM1022-1SJ01 SIMOVERT BUS INTERFACE picture(2) CTI (SIEMENS) 2590-EF ISOLATED 16-PT AC OUTPUT MODULES 901H-2590-EF
$19.95
(2) CTI (SIEMENS) 2590-EF ISOLATED 16-PT AC OUTPUT MODULES  901H-2590-EF pictureSIEMENS 3RT1034-1AL20 SIRIUS AC CONTACTOR W/230VAC COIL
$10.95
SIEMENS 3RT1034-1AL20 SIRIUS AC CONTACTOR W/230VAC COIL pictureInstromedix Siemens Pacesetter External A-V Pacemaker Data Transmitter 328
$19.99
Instromedix Siemens Pacesetter External A-V Pacemaker Data Transmitter 328 pictureSiemens PXC16-PR.A Apogee Automation Controller
$47.5
Siemens PXC16-PR.A Apogee Automation Controller picture






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