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.
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

Vintage Mac Meith Co.- Punch Rite No. 24 Two Hole Green Punch Newark, NJ USA
Vintage Mac Meith Co.- Punch Rite No. 24 Two Hole Green Punch Newark, NJ USA pictureVintage Mac Tools 1/2" Fan Clutch Wrench - S140
Vintage Mac Tools 1/2MAC6-6 MOTOROLA METAL CAN Triac Vintage NEW
MAC6-6 MOTOROLA METAL CAN Triac Vintage NEW picture¼” ratchet vintage very nice cond Mac Tools MR5 (( Loc23 ))
¼” ratchet  vintage  very nice cond   Mac Tools  MR5    (( Loc23  )) pictureVintage MAC Tools 5/16" x 1/4" Double Open-End Wrench, D1, USA
Vintage MAC Tools 5/16

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