I’m working on writing a metronome app, using haptic feedback triggered by a timer to provide the pulses. Since normally the app pauses when the screen goes off, and as a result the timer stops, I’m trying to keep the screen on using a power lock. I’ve provided the power permission, and have this line of code when the metronome is started:
However, the display isn’t staying on. It’s not returning an error. It does cause the app to run in the background now, so the timer keeps triggering, but the timer loses accuracy while the display state is changing. What am I missing to actually keep the display on and dimmed?
Trouble keeping Gear S2 display on
I’m working on writing a metronome app, using haptic feedback triggered by a timer to provide the pulses. Since normally the app pauses when the screen goes off, and as a result the timer stops, I’m trying to keep the screen on using a power lock. I’ve provided the power permission, and have this line of code when the metronome is started:
However, the display isn’t staying on. It’s not returning an error. It does cause the app to run in the background now, so the timer keeps triggering, but the timer loses accuracy while the display state is changing. What am I missing to actually keep the display on and dimmed?
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio