why simulator only shows IQ letter with exclamation mark, not the hello world?

Former Member
Former Member

using Toybox.WatchUi;
using Toybox.Graphics;
using Toybox.Lang;
using Toybox.System;
using Toybox.Time;
using Toybox.Time.Gregorian;

class sim1View extends WatchUi.View {

function initialize() {
View.initialize();
}

// Load your resources here
function onLayout(dc) {
setLayout(Rez.Layouts.MainLayout(dc));
}

// Called when this View is brought to the foreground. Restore
// the state of this View and prepare it to be shown. This includes
// loading resources into memory.
function onShow() {
}

// Update the view
function onUpdate(dc) {

var today = Gregorian.info(Time.now(),Time.FORMAT_MEDIUM);
var dateString = Lang.format(
"$1$:$2$:$3$",
[today.hour,
today.min,
today.sec
]
); // Call the parent onUpdate function to redraw the layout
//View.onUpdate(dc);

var view = View.findDrawableById("TimeLabel");
view.setText("Hello world");
System.println(dateString);
}

// Called when this View is removed from the screen. Save the
// state of this View here. This includes freeing resources from
// memory.
function onHide() {
}

}