Jump to content

  • Log In with Google      Sign In   
  • Create Account

Android screen timeout


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 dpadam450   Members   -  Reputation: 946

Like
0Likes
Like

Posted 14 July 2012 - 02:20 PM

I searched for this before and thought WAKE_LOCK permission would solve it. I have my screen set to timeout after 30 seconds. While running my game it will sleep and not force it to stay open. Whats the solution?

Sponsor:

#2 dpadam450   Members   -  Reputation: 946

Like
0Likes
Like

Posted 15 July 2012 - 08:44 PM

Solution was:
getWindow() is a call from activity.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS