So I tried Sys.exit() (which works fine on a 230 in BehaviourDeligate). (note: the simulator throws up an error on Sys.exit() but no error in the real devices - this has been reported to Garmin).
But from MenuDelegate, calling Sys.exit() on the va or 230, results in the "IQ!" screen, but nothing in the CIQ_LOG.txt file. (this looks like a bug to me!)
To demonstrate this problem, I created a "new>CIQ Project>watch app" in Eclipse, and in the MenuDelegate file I made the following change: (and this is all!)
function onMenuItem(item) {
if (item == :item_1) {
Sys.println("item 1");
} else if (item == :item_2) {
Sys.println("exiting");
Sys.exit();
}
}
Anyone found a clean way to exit an app on the x3x from a a menu?
(I think there are actually two bugs here - popView should work on the 230, and the "IQ!" with Sys.exit() shouldn't be there)
Thanks in advance.