The goal is to draw multiple images through settings. Does anyone know how to do so?
I currently have the following code after function onLayout(dc). Is the code correctly placed and written?
When I update in the simulator, the bitmap does not change...
function checkLoadedImage() {
var system = System.getDeviceSettings().BackgroundImageTitle;
if (system==false) {
bitmap = WatchUi.loadResource(Rez.Drawables.imageI);
} else {
if (Application.getApp().getProperty("BackgroundImage") == 0) {
bitmap = Ui.loadResource(Rez.Drawables.imageI);
} else if (Application.getApp().getProperty("BackgroundImage") == 1) {
bitmap = Ui.loadResource(Rez.Drawables.imageII);
} else if (Application.getApp().getProperty("BackgroundImage")==2) {
bitmap = Ui.loadResource(Rez.Drawables.imageIII);