B4A Question Awake.KeepAlive (false) not releasing if it was true before - Shay    Aug 29, 2011 Hi
I am using Awake.KeepAlive(true) to prevent the app going to sleep
and it is working, but if it is strating with "true" and I change it in middle of app run, to "false" the app does not go to sleep
if I start the app with false, it will go to sleep... Share My Creation Stay Alive! Keep screen awake - Swissmade (first post)    Nov 12, 2015 Thanks for sharing... B4A Question How to keep bluetooth device awake - Richard O'Sullivan (first post)    Feb 29, 2016   (2 reactions) Thanks Lahksman,
I did look up the manual and I was able to turn off Auto Power Off.
Richard... B4A Question Awake status - Shay    Nov 29, 2011 Hi is there a way to know the awake staus? meaning I need to know if it is set for Awake.KeepAlive(False) or Awake.KeepAlive(true) or released... B4R Question Repeating alarm - tigrot    May 9, 2022 Hi everybody I need a repeated alarm from a background app. I have an old app of mine, using foreground service and StartServiceAt. No way to get alarm if phone sleeps?. This happens on new versions of Android... No way to keep this process awake? Thank you in advance Ciao Mauro... B4A Question [SOLVED] - Blocked messages in queue when using CallSubDelayed - LucaMs (first post)    Nov 26, 2020
I will need to add the previous "keep awake" coding in my service module like before?
Yes, you have to use the same gimmick/method as the Background location tracking tutorial, as already you did.... B4A Question (Solved) KeepAlive with multiple Activities - MikeSimpson    Sep 12, 2014 the app is active.
If I use:
Dim Awake As PhoneWakeState
Sub Activity_Create(FirstTime As Boolean)
Awake.KeepAlive(True)
in the main activity, it is working, but the phone stays alive also after I ended the app. So I have to use:
Sub Activity_Pause (UserClosed As Boolean)
Awake.ReleaseKeepAlive
End... I have to use
Awake.KeepAlive(True)
and
Awake.ReleaseKeepAlive
in every activity or is there a way to... B4A Question Repeating alarm... - tigrot    May 11, 2022 Hi everybody
I need a repeated alarm from a background app. I have an old app of mine, using foreground service and StartServiceAt. No way to get alarm if phone sleeps?. This happens on new versions of Android, not on older o es.
No way to keep this process awake?
Thank you in advance
Ciao
Mauro... B4R Question SOLVED A way to flash a sketch without IDE in a ESP32 S3. - tigrot (first post)    Oct 20, 2025
In that type of application, I use a switch or jumper on an externally accessible connector to keep the processor awake and enable ota updates.
The tested device is a metal detector. No need to do OTA update. The test is internal or on request on customer plant. Thank you for hint!... B4A Question Service in Foreground with Partial Lock - roumei (first post)    Feb 6, 2021 I use awake.KeepAlive in my hiking app to prevent the phone from going to sleep as long the map is shown and GPS is running: Dim awake As PhoneWakeState awake.KeepAlive(False) ' to keep the app alive without a bright screen awake.ReleaseKeepAlive ' allow sleep again I wouldn't worry too much about draining the battery. If the user wants to use the app exactly for its purpose, it's probably OK. My app runs on a Motorola g8 power for more than 12 hours with the display and GPS... Page: 1   2   3   4   5   6   7   |