This question is an exact duplicate of:
How can I prevent apps from going into sleep mode in Delphi XE8
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
In Delphi XE8 for Object Pascal?