BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 10-21-2010, 03: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, 04:02 PM   #2 (permalink)
Grumpy Moderator
NJBlackBerry's Avatar
Join Date: Aug 2004
Location: Somewhere in the swamps of Jersey
Model: iPh6
Carrier: AT&T
Posts: 27,870
Post Thanks: 34
Thanked 455 Times in 391 Posts

Moved to the Developer Forum.
Old 10-21-2010, 08: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
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
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.