android-doze-and-standby

How does Doze/Standby feature affect location updates?

泄露秘密 提交于 2021-02-05 22:25:48
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

How does Doze/Standby feature affect location updates?

浪子不回头ぞ 提交于 2021-02-05 22:23:08
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

How does Doze/Standby feature affect location updates?

早过忘川 提交于 2021-02-05 22:20:16
问题 Does anyone know if a whitelisted app that is holding a partial wake-lock can receive location updates while the device is in Doze or the app is in Standby? The Android docs (http://developer.android.com/training/monitoring-device-state/doze-standby.html) only state that CPU and network are deferred and do not mention any affect on location updates (i.e. from the LocationManager). Based on this, it would seem that location updates are not affected by Doze/Standby, so if an app is holding a

Android service not working when phone is idle / dozing / locked

前提是你 提交于 2020-02-21 06:17:31
问题 Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. I'm working on a bigger project, but here I'm just trying to get a very simple example to work which I can later adapt to my project. What I want to do I want to have a counter add +1 every second for 1200 seconds (20

Android service not working when phone is idle / dozing / locked

爱⌒轻易说出口 提交于 2020-02-21 06:15:19
问题 Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. I'm working on a bigger project, but here I'm just trying to get a very simple example to work which I can later adapt to my project. What I want to do I want to have a counter add +1 every second for 1200 seconds (20

Doze mode handling

戏子无情 提交于 2019-12-23 12:04:03
问题 I am working on an application which spawns some services in the background using AlarmManager. Timing is very crucial to our application and the functionality can't wait for the next maintenance window to occur. Asking a user to white-list the application is not an issue but doesn't fix the issue of suspending alarms. Also battery consumption is not that big of an issue as well. First possible solution that came to my mind was to spawn an always running foreground service to handle the

How to protect background service/alarms to be kill in newly launched devices in customized OS like oppo - coloros, vivo-funtouch os, Xiomi-MIUI os?

穿精又带淫゛_ 提交于 2019-12-18 12:16:46
问题 I have a WakefulBroadcastReceiver with IntentService , every half hour alarm called and doing some stuff. I have already handle doze mode with setExactAndAllowWhileIdle() method. Some new smart phones with customized os recently launched in market they have their own customized os based on android os. Like oppo with color os, vivo with funtouch os, xiomi with MIUI os. In the OSs there is a feature to clear memory. They have one touch clear memory option. for example if user clear recent app

Doze and App Standby mode in Android 6.0

て烟熏妆下的殇ゞ 提交于 2019-12-13 16:52:12
问题 Google introduced Doze and App Standby mode with Android 6.0 OS. Device will enter in Doze mode if device is unplugged and unused for some amount of time and if application stays inactive for some amount of time, that app goes in StandBy mode (Correct me if I am wrong). Can we (developer) know, device entered in Doze mode or application entered in StandBy mode? How? http://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases In this link, Google says

BroadcastReceiver has no internet access

巧了我就是萌 提交于 2019-12-13 01:36:18
问题 I'm facing a problem with my broadcast receiver. I have set an alarm for 6am, it has to fire my broadcast receiver, which only has to download some data from internet and process it. If I set the alarm for 3pm, for example, it works fine. But the problem is at 6am, it fails downloading because it does not have network connectivity. I perform a partial wake lock before attempting download. Can it be related to this? Does the phone enter some deep sleep and partial wake lock is not enough? What

Difference between setAndAllowWhileIdle and setExactAndAllowWhileIdle

江枫思渺然 提交于 2019-12-10 20:32:37
问题 What is difference between AlarmManager.setAndAllowWhileIdle() and AlarmManager.setExactAndAllowWhileIdle() ? How does these both affect Doze mode introduced in Android 6.0 (Marshmallow) API? 回答1: Refer to the documentation of AlarmManager : Note: Beginning with API 19 (KITKAT) alarm delivery is inexact: the OS will shift alarms in order to minimize wakeups and battery use. There are new APIs to support applications which need strict delivery guarantees; see setWindow(int, long, long,