Is there a way to detect when the watch is in ambient screen mode? I make a watch face and want to continue to update the clock when the ambient screen mode is on (clock is shown on screen), but I want to stop updating when the screen is off. For now, I start and stop the update in onPause
and onResume
methods, but the onPause
method is called when the ambient screen mode comes on.
Thanks.
To be notified of the Ambient mode changed, you have to use a
DisplayListener
. You can find the way to do that here