bernardR Member Licensed User Jun 2, 2022 #1 Hello, I'm looking to make a small application that does just this: prevent the screen from going to sleep while it is in the background and another application is running. Is it possible ? I tried with keepAlive without success. Thanks a lot
Hello, I'm looking to make a small application that does just this: prevent the screen from going to sleep while it is in the background and another application is running. Is it possible ? I tried with keepAlive without success. Thanks a lot
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2022 #2 Not possible. You can prevent the CPU from sleeping with a partial lock. Upvote 0
S Spavlyuk Active Member Licensed User Jun 3, 2022 #3 You should be able to do it with OverlayWindow: https://www.b4x.com/android/forum/threads/probundle.58754/ It has a KeepScreenOn option, though I haven't tested it on newer android versions. Upvote 0
You should be able to do it with OverlayWindow: https://www.b4x.com/android/forum/threads/probundle.58754/ It has a KeepScreenOn option, though I haven't tested it on newer android versions.