If you call System.exit(), the app is supposed to exit. In the case of a widget, exiting would theoretically return the user to the widget loop. If it were to do this, what widget should be displayed? Or maybe the user should be dropped at the clock page?
Even if we decided on a behavior, it wouldn't work on a device until the device firmware had integrated. This would cause headaches as developers would be leaning on System.exit() to do something, but it wouldn't behave that way on all devices. In the end, we decided that changing the behavior of System.exit() was not worth it.
In the end, we decided that changing the behavior of System.exit() was not worth it.
Hi Travis,
We have a bug with a widget (https://apps.garmin.com/en-US/apps/03e01c2d-9eb3-4d8e-99c9-e45e5bd0936f) on the Vivoactive3 and the lack of a proper exit (we can only call System.exit() thru an input handler) :
Here is the case :
1) The user launches the widget
2) he stays on the widget and do nothing
3) after +- 25 min with the time out the view come back to the clock, BUT on the native clock (not to a watchface set by the user)
=> This is very annoying. This bug doesn't appear if the user push on the back button (and call the System.exit())
Our plan was to make a System.exit() happen after 30 sec without the intervention of the user.
We can't do it...
Do you have a suggestion ?
Thanks,
Olivier
In this thread, it's stated that System.exit doesn't work in a widget, and that's by design and won't change.
If you don't interact with a widget, it should time out in less than 1 minute on the va3 ( just time it at ~40 seconds with a widget of mine with the 7.20 fw) I'm not sure why you're seeing 25 minutes.