Hello,
I would like to open a new view from a menu.
Here is part of my code but it does not work:
function onMenuItem(item) {
if (item == :Choose) {
Storage.setValue("actualTimer", Storage.getValue("setupTimer"));
Storage.setValue("count", 0);
WatchUi.pushView(new TimerView(), new TimerDelegate(), WatchUi.SLIDE_UP);
} else if (item == :Change) {
WatchUi.pushView(new ChangeView(), new ChangeDelegate(), WatchUi.SLIDE_UP);
}
}
Can somebody help me with it?