Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can I avoid sleep mode in android?

How can i set the screen on while my game is launching on an Android device with blueprints??

Product Version: UE 4.7
more ▼

asked Jun 05 '15 at 04:50 AM in Blueprint Scripting

avatar image

10 1 2 3

avatar image mhnoni Feb 08 '16 at 09:21 AM

i was just going to create new post asking the same thing , how to prevent android device to go to sleep during startup loading ?

So any help pls ?

thanks MH

avatar image Acovis Dec 01 '18 at 04:43 AM

having this same problem. ive tried many many things and no good... im trying to do the "event construct" on a widget now, this is my only hope... ill let you know.

my answer hub is https://answers.unrealengine.com/questions/853542/android-going-to-sleepscreensaver-despite-interfer.html

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The only action that I could find is the "Control Screensaver" Blueprint Action, this should enable/disable the keep-screen-on functionality on android. Not totally sure if keep-screen-on also disables sleep but I think so.

The code delegates to a platform specific action. On android the following is called:


You can see that for yourself if you right click on the Control Screensaver node and use "Goto Code Definition". Follow the source until you land in the AndroidMisc.cpp file. There, find the method FAndroidMisc::ControlScreensaver.

I don't know if its is possible to modify the first loading of the game in any way by blueprint. You could change the source to call the ControlScreensaver/KeepScreenOn method on the first possible occasion.

more ▼

answered Feb 08 '16 at 10:59 AM

avatar image

113 2 4 11

avatar image mhnoni Feb 10 '16 at 05:48 PM

Thanks its good but as you said seems we need to call this action during loading which is before event begin play ,and I'm not a programer so i can't get more that what you got , hope UE team can add this as a feature in the engine in the future .

avatar image RVillani Aug 03 '16 at 08:52 AM

I'm calling the "Control Screensaver" Blueprint Action from a "Event Construct", in a Widget, and it works fine. Screen doesn't turn off.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question