Hello,
when user is using my app for the first time, I ask via Confirmation popup if he want to set the date.
function onLayout(dc) as Void {
System.println("DataSet: " + Properties.getValue("dateSet"));
if (Properties.getValue("dateSet") == 0 ) {
var message = WatchUi.loadResource(Rez.Strings.PopUpMessage);
dialog = new WatchUi.Confirmation(message);
WatchUi.pushView(dialog,new MyConfirmationDelegate(),WatchUi.SLIDE_IMMEDIATE);
}
In the ConfirmationDelegate I try to pushView() a Date Picker (which I also use in the Menu)
I also tried to call the Menu2, but it is never shown.
class MyConfirmationDelegate extends WatchUi.ConfirmationDelegate {
function initialize() {
ConfirmationDelegate.initialize();
}
function onResponse(response){
if (response == WatchUi.CONFIRM_NO) {
System.println("Cancel");
return false;
}
else {
System.println("Confirm");
WatchUi.pushView(new DatePicker(), new DatePickerDelegate(), WatchUi.SLIDE_LEFT );
}
return true;
}
}
Any Idea why I it is not shown? I confirmed at least the function is called with the println()