BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-21-2010, 02:59 PM   #1 (permalink)
New Member
 
Join Date: Oct 2010
Model: 9800
PIN: N/A
Carrier: T mobile
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BB development question

Please Login to Remove!

hey i am new at new at blackberry development (i use java and eclipse IDE) and wanted to know how to jump from one screeen to another in an application. The way i learned app development was one class = 1 screen so how can i go from say screen one to screen 2 and from 2 to 3 and so on..
Offline  
Old 10-21-2010, 03:02 PM   #2 (permalink)
Grumpy Moderator
 
NJBlackBerry's Avatar
 
Join Date: Aug 2004
Location: Somewhere in the swamps of Jersey
Model: i5s
Carrier: AT&T
Posts: 27,806
Post Thanks: 33
Thanked 441 Times in 381 Posts
Default

Moved to the Developer Forum.
Offline  
Old 10-21-2010, 07:10 PM   #3 (permalink)
New Member
 
Join Date: Jul 2010
Model: 9700
PIN: N/A
Carrier: Verizon
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Screen Movement

To move from screen to screen you push and pop them off the screen 'stack' with calls like this to add a screen you push it like this:

mnscr = new MyMainscreen(this);

UiApplication.getUiApplication().pushScreen(mnscr) ;

and to go back to the screen you came from you pop it like this:

mnscr.popCurrScreen();

but in order to do that you need a reference to the main screen which needs to extend MainScreen class
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.