Is there a way in onEnterSleep or onHide to temporarily keep the display alive?
And conversely is there a way to programmatically blank the display when it's no longer needed.
Is there a way in onEnterSleep or onHide to temporarily keep the display alive?
And conversely is there a way to programmatically blank the display when it's no longer needed.
The only way to change these things is if the user changes them in the watch settings.
With a widget, if there's no user interaction in 1-2 minutes (depends on the device), the widget will close and return…
If you're developing an app or widget, this might be what you're looking for:
if(Attention has :backlight) { try{ Attention.backlight(true); } catch (exception) { // Sometimes this…
If you're developing an app or widget, this might be what you're looking for:
Thanks, but that doesn't work, at least not in the simulator, with force onhide it doesn't wake, and occasionally raises an error which is caught.
Haven't tested on the watch yet.
and then use System.exit(),
Thanks, Got the auto close working on the Simulator but have to test on the watch still.
If you're developing an app or widget, this might be what you're looking for:
Thanks, it seems to work on the watch, what I was looking for.