Android Wear Sleep Prevention

I am writing a small wearing app that takes about 10-15 minutes at a time for quick access. The problem is that the clock is sleeping (the screen is completely black), you need to return to the launch application screen to return to it.

Data is saved, so this is more annoying than anything else. Is there anyway that the watch only dims the screen, but does not turn it off until the user rejects the application?

+4
source share
1 answer

Please take a look at the session from Google I / O 2014:
https://www.youtube.com/watch?v=sha_w3_5c2c#t=1241 <- 20:42

android:keepScreenOn="true", " ".

: https://developer.android.com/training/scheduling/wakelock.html#screen

+14

All Articles