Hello,
I would like to test vibration alarms with the Connect IQ device simulator. In settings menu, vibration is active.
How does it work or signalize an vibration alarm?
Thanks
Hello,
I would like to test vibration alarms with the Connect IQ device simulator. In settings menu, vibration is active.
How does it work or signalize an vibration alarm?
Thanks
ok, thanks for the example. Why does my timer1.stop(); not work although this is described in the documentation:
Stops the Timer from running.
This only needs to be called for repeating timers. A Timer can be started again by calling start().
if i call WatchUI, requestUpdate() for the timer, does the watch go anywa to sleep mode (which would be desired) or is then the view always visible? (prevents the sleep mode?)
Understand that only the venu device turn off the screen after a bit (and there it is a setting where you can keep it on) while the MPI devices don't. The key here is "turn off the display" as AMORED/LCD burn battery baster than MIP. Your app still runs and things like vibrations will still occur.
How does this stop()- function work and where to put it best? Could you please a small example?
You use "stop" to stop when repeat=true. Put in println calls for when your timer fires and when you call stop so you can see what's happening.
Yes did this, but did not work. Where to put in place? Do i Need to specify which timer to stop?
Yes, you need to specify which timer.
Let's say you have
timer1= new Timer.Timer();
timer1.start( method(:onTimer), 60*1000, true );
timer2= new Timer.Timer();
timer2.start( method(:onTimer), 1000, true );
to stop the first one, use timer1.stop(), the second one timer2.stop()
Great it worked! Thank you a lot for your support and examples!