- Home /
Question by
Obuzaba · Oct 12, 2015 at 10:16 AM ·
androidapplication
Do not allow the android screen off.
I made a game that moves a ball with the accelerometer, so the screen is a good time without receiving touches, then the android off the screen in the middle of execution. I wonder if you have any way to solve it.
Comment
Best Answer
Answer by Ali_Jaffer · Oct 12, 2015 at 12:18 PM
if (Application.platform == RuntimePlatform.Android)
{
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
Your answer
Follow this Question
Related Questions
Application Level data not available inside OBB (Android) 0 Answers
Virtual reality apply music to different parts of the scene based on where user is looking at. 0 Answers
Menu on Android Application 1 Answer
How to log a finger move? 1 Answer
How do I Force Application to Quit if no internet connection available 1 Answer