I have a code:
for ( var i = 1; i <= 30; i += 1 ) {
...
dc.drawText(x, y, Gfx.FONT_XTINY, i, Gfx.TEXT_JUSTIFY_RIGHT);
...
it works Ok on Connect IQ Device Simulator but not on watch (Fenix 3): "IQ" icon with exclamation mark displayed when app (widget) starts.
but it works on both simulatore and watch rewritten:
...
dc.drawText(x, y, Gfx.FONT_XTINY, " " + i, Gfx.TEXT_JUSTIFY_RIGHT);
...
i.e. with implicit type conversion