Search code examples
javablackberryjava-meportingcldc

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


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?


Solution

  • The BlackBerry UI has the concept of screens:

    UiApplication.getUiApplication().pushScreen( screen )
    

    See the UiApplication documentation.