Wanting to keep the screen on in Delphi app on Android
<p>I'm wanting to keep the screen on in my Delphi app for Android.</p>

<p>I know that there are two ways:</p>

<ol>
<li><p>with the window manager and FLAG_KEEP_SCREEN_ON</p></li>
<li><p>with a "wake lock".</p></li>
</ol>

<p>The problems I have are that I can't seem to get a <code>WindowManager</code> instance, let alone get the flag from a layouts class, and wake locks don't seem to be defined (at least in XE8).</p>

<p>The window flag seems like the best way to go, but there appears to be no way of success.</p>

<p>Does anyone know how to do this?</p>