Questions tagged [battery-saver]
84 questions
4
votes
2 answers
Progressbar disappears in battery saver mode (Android 5.x)?
I noticed that when the Battery saver mode is enabled (by the user or automatically) in Android 5.x - ProgressBars in application just disappear.
No animation, no static progressbar widget - just empty place.
How to prevent that? I understand when…

udenfox
- 1,594
- 1
- 15
- 25
4
votes
1 answer
Android Intent for Battery Saver Mode (Lollipop)
I'm trying to setup a profile in tasker to automatically trigger the battery saver mode in Android 5.0. But all I found was an intent to launch the battery saver activity, but none to actually toggle it.…

The-Droidster
- 635
- 7
- 13
3
votes
1 answer
How force the app to opt out of battery saver mode when the service is ON?
The expected behavior is that the app will be running all the time when it's in ON state. Some phones put the app in background mode when the app is not active for some time. I want the app to be running all the time even its in standby mode(standby…

Shafeeq Mohammed
- 1,193
- 17
- 25
3
votes
1 answer
GCM Notification when battery saver is turned on
I have one doubt regarding battery saver. How GCM Notification behaves when battery saver is turned on? Whether GCM Notification with normal priority will be delivered to the app?

Krishna M
- 1,135
- 2
- 16
- 32
3
votes
1 answer
Android Bluetooth LE disabling notification callback drain battery?
I'm developing an application that connects to a Bluetooth Low Energy Device. The architecture of the program requires it to collect data from this device in bursts. Example: Collect data for 30 seconds once every 3 minutes.
It is very important for…

DeeCeptor
- 167
- 6
3
votes
1 answer
Debugging a Windows Phone app when in battery saver mode
Is there any way to do this?
If I have my phone plugged in, then even if I have the battery saver mode on, the fact it's plugged in takes precedence and so it's not running in battery saver mode.
Additionally, if I try debugging via any of the…

Barrrdi
- 902
- 13
- 33
2
votes
1 answer
Android - Disable Forced DozeMode or AppStandByMode
I have an application that uses a ForegroundService to send location updates to a server. Basically a tracker.
This ForegroundService has a Handler that periodically (using postDelayed) executes a block of code to send the location.
This works…

sebasira
- 1,739
- 1
- 22
- 41
2
votes
2 answers
Background service stops in battery saver mode in android R
I wrote an android app that checks battery level by changing level and gives an alarm when the level reaches a certain value.
I made use of broadcast receiver and background service in my app.
It works properly in all android versions but in android…

homayounKh
- 51
- 1
- 8
2
votes
1 answer
Android Service Running only when UI is active
It seems Android in recent version have introduced multiple restrictions on running services in the Background, which of course it good news for battery life of our devices. My goal is to create an app which adheres to this by only running a service…

Johnny Egeland
- 555
- 1
- 6
- 19
2
votes
0 answers
How To Show The Application Running In The Background And How We Can Stop Their Operation?
I want to make a battery saver application on which i want to show all the applications running in the background into recyclerview and after showing them then i want to kill all the applications that are running in the background. Is there any…

UlSilverDragon
- 41
- 8
2
votes
1 answer
Is there a battery saving methode when reading GPS sensor in time intervals?
I'm developing an android app which collect GPS sensor data in time intervals programatically (one per 5min). So it drains the battery badly. Is there any way to optimize the power consumption?
Is there a way to disable or sleep GPS sensor when it…

lakshitha madusanka
- 171
- 2
- 11
2
votes
0 answers
Linux swapper (process 0) could drain battery?
I add some debug messages to find which process could lead the battery drain.
If current mode is flight mode , there are only few processes that could wake up the system.
On the other hand , there are a lot of rtc alarms triggered by swapper process…

user3365407
- 53
- 1
- 9
2
votes
0 answers
android implement app work on battery restriction mode
The quesion is that is it possible to implement my app works on battery restriction mode. If user enable the mode in my settings i don`t use wake lock anymore and more draining battery works.I have read this article.

nAkhmedov
- 3,522
- 4
- 37
- 72
2
votes
1 answer
Is service running all the time bad?
I am trying to learn about service and BroadCastReceiver.
Code below is a service which runs all the time in the background. The problem is I don't know how it would affect the battery consumption.
My goal is to detect the screen on and off, so I…

YRTM2014
- 165
- 1
- 8
2
votes
1 answer
intelligent calculating distance between two geo locations in android
Look at this example:
public void start(){
//...
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, TEN_SECONDS, TEN_METERS, this);
}
@Override
public void onLocationChanged(Location location) {
…

alex
- 8,904
- 6
- 49
- 75