hi mates,
I think I am not "smart" enough or lack of skill to understand the complications,
I read the CoreTopic again and again but in vain ;)
So far I did test that:
function onPress(clickEvent){ var c = clickEvent.getCoordinates(); if(c[0]>gW*0.4&&c[0]<gW*0.6&&c[1]>gW*0.4&&c[1]<gW*0.6){ Sys.println("ok"); var K = new Complications.Id(Complications.COMPLICATION_TYPE_SUNSET); if(K!=null){ Sys.println(Complications.getComplication(K).value); try{ Complications.exitTo(K);Sys.println("exitTo OK"); return true; } catch ( e ) {Sys.println("AppNotInstalled");} } } }
it seems to work, I mean I have the value and the "exitTo OK"
I guess the similator does not simulate the app opening right?
That is the only code block which contains Complications code.
So now my question is, what is the interrest of "suscribe" etc?
have a great day