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
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..
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: SGS7
Carrier: Verizon
Posts: 27,933
Post Thanks: 32
Thanked 467 Times in 403 Posts

Moved to the Developer Forum.
Old 10-21-2010, 07:10 PM   #3 (permalink)
New Member
Join Date: Jul 2010
Model: 9700
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:


but in order to do that you need a reference to the main screen which needs to extend MainScreen class

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