Android Question Exccesive wakeups

hookshy

Well-Known Member
Licensed User
Longtime User
I have a waring mesage on my console as one of the apps runs excssive wakeups and that is probaby because of this

B4X:
StartServiceAt("", DateTime.Now + DateTime.TicksPerMinute ,True)
This is found on Starter service.
I use the itag exemple and refresh conectivity each minute

Q. What can I do to fix this wakeup warning , and keep the app working ?


http://www.danken.ro/pub/wakeups.bmp

wakeups.bmp
 

DonManfred

Expert
Licensed User
Longtime User
This is found on Starter service.
You NEVER should start or stop and also not schedule the Starter Service! Use any other Service.


Android will not allow you to restart a service every minute. Create a foreground Service. Relevant Tutorial:
 
Upvote 0
Top