Delphi XE8 firemonkey How to stop the screen from sleeping/dimming in a android app without using the wakelock? [duplicate]

  

This question is an exact duplicate of:

How can I prevent apps from going into sleep mode in Delphi XE8

1 answer

How to stop the screen from sleeping/dimming in a android app without using the wakelock, or the Android.JNI like here: Delphi XE5 Android. How to use PowerManager.WakeLock? ,if its possible?

Or what is the equivalent of

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

In Delphi XE8 for Object Pascal?

Comments are closed.