0

Equivalent (roughly) of setCurrent() in BlackBerry()?

I have some J2ME code I am porting to BBs RIM classes. The J2ME code uses setCurrent() to "change page" in the application, but that is of course not working. Any ideas?

Prof. Falken
  • 24,226
  • 19
  • 100
  • 173

1 Answers1

2

The BlackBerry UI has the concept of screens:

UiApplication.getUiApplication().pushScreen( screen )

See the UiApplication documentation.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Eric Giguere
  • 3,495
  • 15
  • 11
  • Yes, but there seems to be a difference. With setCurrent() I can just paint any Displayable. Screens seem to be more of separate entities. Maybe the question should be, is there any Displayable equivalent in BB? – Prof. Falken Feb 08 '11 at 10:12
  • I don't know what you want to do, so it's hard to answer. You can certainly subclass a Screen yourself and override the paint() method in it to do whatever painting you want. – Eric Giguere Feb 08 '11 at 15:06