Android Question Android 9 keeping an app alive?

davemorris

Active Member
Licensed User
Longtime User
Hi Guys
Has anybody got an ideas regarding keep an app alive for Android 9?
I have developed an App which works great on Android 4 thro to 8.1, but the same app on Android 9 appears to go to sleep after about 10 minutes after the screen has locked. The same App on older versions of Android runs all day!

The app already has following classic techniques for keeping services alive.
Invoking Partial Lock
Running the service in foreground
mlWifi.holdWifiOn (my app uses Wifi)

Also most of the keep alive tasks are performed within the Starter Service - I have seen some comments suggesting it is not good to put the Start service into foreground (is that were it goes wrong?)

Any suggestions
Dave
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top