Questions tagged [android-doze]

Doze mode introduced with Android 6.0 Marshmallow as a power-saving feature.

The Doze mode was introduced with Android 6.0 Marshmallow to improve the power usage of the device. If the device is not charging and had no user interaction for some time, the usage of CPU and network gets restricted by deferring background tasks and executing them in batches during maintenance windows.

191 questions
0
votes
0 answers

Doze and BroadcastReceiver - not working together on Marshmallow

I have a BroadcastReceiver that listens for the calls and when they end the AlertDialog appears. On Android 5.1 and lower it works all well, but on Android 6.0 (Marshmallow) and higher after some time when someone calls dialog does not appear after…
0
votes
1 answer

Turn off doze mode pragmatically

The android Marshmallow has a new built in doze feature that shuts down background processes after some time. How to resolve this by simply checking if the device is waking up from this doze event and then relaunching the scheduler process…
bythestarz
  • 29
  • 1
  • 10
0
votes
1 answer

Wear Actions execute very slow or not at all when phone is in doze mode

I am building an Android App to control power outlets with a smartphone. The app features an Android Wear app so people can control their lights right from their wrist. When the user wants to control a light I send a String action via the MessageApi…
Markus Ressel
  • 1,127
  • 1
  • 13
  • 14
0
votes
2 answers

Android N Doze mode - how to keep background download and processing?

Are there callbacks on doze mode (on Doze first/second level, on start/end of maintenance window)? Is there a way to workaround Doze mode that is not dependent on the user approval? In previous versions (Android M and smaller) I used Android…
-1
votes
2 answers

Is it possible for my GPS application to continue running in the background while the tablet is on standby?

I have created an application that generates a tracklog of the Android devices location. A GPS coordinate is recorded at regular intervals and stored on the device for later download. Currently, when the phone goes on standby, the program stops…
portsample
  • 1,986
  • 4
  • 19
  • 35
-1
votes
1 answer

Implement a service to stay alive permanently for detecting BLE controllers on Android?

I have an access system based on BLE controllers and a cloud service. We're going to implement the "hands-free" mode for getting access to the restricted area. It means: user don't need to get a smartphone to enable the access (it should work the…
-1
votes
1 answer

Run a service (push notif) in a exact time repeatedly even if phone is in doze mode

I want to run a service (push notification) in a specific time every day even if phone is in a doze mode l. Using alarm manager with method of setExactAndAllowWhileIdle() has two issues first it just support sdk 23 and upper, second it cannot be…
-1
votes
2 answers

Location Tracking, Doze, AppStandby

I've implemented Background Location Tracking using IntentService. I'm able to receive Location points in Foreground Mode. But when a device is locked or after some time app killed, I'm not able to receive location points. How can I handle Doze &…
Dipendra Sharma
  • 2,404
  • 2
  • 18
  • 35
-1
votes
1 answer

Can't run background service at a regular period of 3 minutes on Chinese custom ROM to send latitude and longitude

I have tried job scheduler and work manager but it does not work in doze mode and not at regular period. I have used normal service which is not working on some Chinese custom rom phone specially oppo and vivo. I have used the Alarm Manager to…
-1
votes
1 answer

Android: How many times can I send a high priority GCM to my app in Android 7.0?

I have an android app and I am using GCM. I will upgrade it to FCM. But for now, How many times can I send high priority GCM, or for the sake of it FCM so that it can do some network requests in an hour.
-1
votes
1 answer

Proper way of running IntentService every x minutes in android, doze included

Basically I am stuck because the "improvements" in battery added in Android 6.0+. My app is supporting API from 11+ Scenario Here's my scenario: my app fetches data from a web service of a 3rd party server. Since it is not my server I do not have…
Alin
  • 14,809
  • 40
  • 129
  • 218
1 2 3
12
13