using Toybox.WatchUi as Ui;
using Toybox.Graphics as Gfx;
using Toybox.System as Sys;
using Toybox.Lang as Lang;
using Toybox.Application as App;
using Toybox.Time as Time;
using Toybox.Time.Gregorian;
using Toybox.ActivityMonitor;
class FirstWatchView extends Ui.WatchFace {
var myBitmap;
function initialize() {
WatchFace.initialize();
}
// Load your resources here
function onLayout(dc) {
myBitmap = Ui.loadResource(Rez.Drawables.LauncherIcon);
setLayout(Rez.Layouts.WatchFace(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) {
dc.drawBitmap(120,120, myBitmap);
View.onUpdate(dc);
}
// Called when this View is removed from the screen. Save the
// state of this View here. This includes freeing resources from
// memory.
function onHide() {
}
// The user has just looked at their watch. Timers and animations may be started here.
function onExitSleep() {
}
// Terminate any active timers and prepare for slow updates.
function onEnterSleep() {
}
}
Can you see anything obviously wrong? I am quite confused. Is it maybe a problem to show bitmaps on the emulator? community.garmin.com/.../1376751.png