Link to home
Start Free TrialLog in
Avatar of Member_2_7965240
Member_2_7965240

asked on

Delphi Android App : how to work in sleep mode?

Hello,

I wrote an Android app in Delphi Seattle. It transfers data from a database from another.
The problem is that when the phone enters in display sleep mode, the app stops transferring. When the screen is on again it will continue where it left it.

How can I set it to work in display sleep mode?

Thank you very much!
Avatar of Chris Harte
Chris Harte
Flag of United Kingdom of Great Britain and Northern Ireland image

Since Marshmallow android now aggressively targets apps that try to run in the background as a battery saving feature. On the development site there are sections about power management and the use of Standby Buckets. I am not sure you are going to be able to by pass these restrictions because they are not APIs that you can implement programmatically. They are determined by the device manufacturer.

Power Management
https://developer.android.com/topic/performance/power/

Doze and standby
https://developer.android.com/training/monitoring-device-state/doze-standby
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial