Ticket Created

PHOSPHOR-1102

Transferred

exitTo not exiting

On a 1030+ with 4.0, my app is no longer exiting with exitTo(). 

I'm using exitTo() to launch a course.

The launching works but you can't go back into the app (or the widget version).

And when you shut the the device off, it says an app is running.

It appears using System.exit() after the exitTo() works in the real device but not in the simulator.

Calling System.exit() isn't a solution anyway because the user might cancel the launch.

Ugn.

Parents
  • It appears using System.exit() after the exitTo() works in the real device but not in the simulator. Calling System.exit() isn't a solution anyway because the user might cancel the launch.

    You should not need to call System.exit() after calling System.exitTo(). If the launch is successful, the app will exit automatically. I believe the code after the System.exitTo() call will execute, so you might need to handle that, but you don't need to exit an exiting app.

Comment
  • It appears using System.exit() after the exitTo() works in the real device but not in the simulator. Calling System.exit() isn't a solution anyway because the user might cancel the launch.

    You should not need to call System.exit() after calling System.exitTo(). If the launch is successful, the app will exit automatically. I believe the code after the System.exitTo() call will execute, so you might need to handle that, but you don't need to exit an exiting app.

Children