Questions tagged [battery-saver]
84 questions
28
votes
2 answers
Battery-saver + phone-call-intent => no Internet?
Note: as it turns out, the original question was incorrect in its assumptions. See more details on its edits at the bottom.
It's now about the battery-saver, and not battery-saver&doze-mode. It's also not about Service&BroadcastReceiver, but just…

android developer
- 114,585
- 152
- 739
- 1,270
26
votes
2 answers
How to check if Android Lollipop battery saver is on
Android Lollipop introduced a battery saver mode that can be turned on at any time, and turns on by default when the battery is at 15% or lower. This poses a problem for my app, since the battery saver disables animations that provide crucial…

Tony Wickham
- 4,706
- 3
- 29
- 35
17
votes
2 answers
Programmatically enable/disable "Battery Saver" mode
I am trying to find if I can enable and/or disable Android's built-in "Battery Saver" mode programmatically.
Any official approaches, or trickery, are welcome.
For reference, here is how to do it following Android's standard UI in…

Christopher Bull
- 2,489
- 1
- 23
- 27
11
votes
1 answer
How to keep playback active after the screen is turned off
I have an app with audio playback, but on some devices (mainly Huawei, Samsung, Sony) playback is stopped when the screen goes off.
Note: playback does not stop for some other apps like Spotify, Play Music
I found this answer (for Huawei devices)…

majov
- 545
- 3
- 16
10
votes
1 answer
Retrieve state of Windows 10 Power mode slider
Is there any API to retrieve a state of Windows 10 Power mode slider?
I was looking at Windows.System.Power namespace. But PowerManager class seem to provide only an immediate state of the power system, but not user preferences set by the…

Martin Prikryl
- 188,800
- 56
- 490
- 992
7
votes
1 answer
Saving power with location services by detecting user movement using sensors
I'm working on an app that tracks the user's whereabouts. In order to save battery, I want to implement an idle zone that makes the location manager pull less frequently (or even stop) on the GPS location. Once the user starts moving again (detected…

Martin
- 2,606
- 4
- 24
- 38
7
votes
2 answers
Python script to charge and discharge laptop battery
A friend of mine recently inherited an old laptop and has freshly installed windows 7, and wants to increase the battery life. Initially the battery lasted around 20mins, but by manually allowing the battery to fully discharge before recharging, a…

Cornspierre
- 322
- 1
- 5
- 14
6
votes
1 answer
ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS : Need Intent to All Apps List
I need an intent to "Don't optimize" settings page of ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS .
But when i change it to "Don't optimize and return , The settings are not saved .
It will be still in the "Optimized" list
Device :one Plus 5
Os :…

Rasheed
- 542
- 1
- 6
- 14
6
votes
0 answers
Read the `Power Saving Modes` settings on the MIUI devices
The Power Saving Modes settings is different from the regular Android OS Power Saver setting and accessible on MIUI devices only (or rather accessible at least on MIUI devices)
Settings -> Battery & Performance -> Manage apps battery usage
The…

Mando
- 11,414
- 17
- 86
- 167
6
votes
2 answers
Get location (coordinates) periodically without dramatically increase battery consumption
I'm developing an Android application; this App needs to send periodically (every 10 minutes) the current position (coordenates) to a web service. But ... I'm a little confused about the more correct way (and friendlier to the device battery) to do…

tomloprod
- 7,472
- 6
- 48
- 66
5
votes
1 answer
Foreground service is killed in Android 10
In Android 10, some manufacturer comes with the new feature in a battery optimization setting (see the picture). My foreground service getting killed by OS after some time when the screen is off.
I have used the foreground service with notification.…

mdroid
- 474
- 3
- 15
5
votes
1 answer
Object Animator not working in Battery Saver mode post JellyBean(>Android 5.x)
My application heavily uses ObjectAnimator. But I have recently noticed that animations using ObjectAnimator do not work or sometimes even crash when the battery saver mode is turned on. Since the smoothness of the app UI heavily relies on the…

kiran joseph
- 51
- 4
5
votes
2 answers
Fused Location API gives Inaccurate Lat, Long when plotting in map it is slightly away from the road path even for low accuracy value
Google provides the fused location provider API to obtain location co-ordinates. According to the documentation, the API internally polls location data from different providers (GPS, Wifi, Cellular networks) and provides the best location. But, in…

M Vignesh
- 1,586
- 2
- 18
- 55
4
votes
0 answers
Unable to load Images for the Firebase Notification(Data Messages) in background during Battery-Saver Mode Android
I am using FCM Data Messages for pushing Notifications to my Android App. So basically, my data payload will have the information like Notification Title, Message and Image URL. The Image URL will be different for each and every notification. After…
user3938183
4
votes
1 answer
How to play animations in battery saver mode in android ? Is there any work around?
I am using animation library in my app(For scanning).Whenever device goes to batter saver mode animations are being disabled.In some other apps animations are not disabled. Is there any work around to enable animations in batter saver mode ? If…

Dinesh Chitta
- 670
- 8
- 23