0
votes

In my app, I'd like to disable the automatically sleep function. I want it keeps alive all the time.

I tried searching it, however couldn't find any answer. (maybe I didn't find the correct keyword).

So, please anyone tell me how to do it. Thank you

1
Does this work for you?look for Mick's answer stackoverflow.com/questions/4339679/…luchosrock
@luchosrock thank you. I tried at first, it didn't work. but it's working now.StanleyZ
would you answer this question yourself?luchosrock
@luchosrock I'd like to accept your answer if you don't mind. thank you for the help.StanleyZ

1 Answers

0
votes

You can do this by disabling UserIdleDetection.

Please look into

UserIdleDetectionMode Property

Idle detection