Search code examples
blackberryblackberry-jde

Go back to Global Screen without exiting app


I am a newbie at Blackberry development. I am making an app which I have set as System Module so that it will Run at startUp. This app has a listener which captures the event of an outgoing call and then asks the user for a confirmation. My problem is, I want to go back to the Calls List Screen (Global Screen) if the user selects NO. But, if I use System.exit(0), the listener stops, which is not desired. What I need to do is again send the App to background. Can someone help???

Thanks in adv.


Solution

  • Thanks Vivart. That did work. But problem is that it brings me to phone's home screen and I want to go back to Calls List Screen.

    I found an alternate solution -

    Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, new PhoneArguments());

    This line brings the Calls List Screen to foreground.

    Thanks again for the quick response :)