Ticket Created
over 4 years ago

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
  • The problem is that the app isn't exiting.

    It's a problem on the 1030+ and the 1030 and it's not just my app.

    The RWGPS app doesn't exit either.

    ==============

    "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."

    What code? The following line? More than that?

    (If it's executing app code, the app isn't really exiting.

  • The course launches but the app doesn't exit.

    When I shut the device off it says there's an IQ app still running. And I can't launch any app.

    It used to work.