Questions tagged [battery-saver]
84 questions
2
votes
5 answers
Android GPS and battery usage
I have 2 android applications A and B, and both of them are reading gps values based on different parameters. Considering both the apps are running on the device, which of the folllowing approaches would be better?
Both A and B are to be different…

Niju Mt
- 159
- 3
- 10
2
votes
1 answer
How does the Calendar app on Windows Phone update its live tile even with the battery saver on?
I am trying to develop a simple calendar app with a live tile but in battery saver mode the background agent won't run and I can't have the live tile updated with the current day and day of week.
I noticed that the Calendar (1st party app) does not…

Andrei Rînea
- 20,288
- 17
- 117
- 166
1
vote
0 answers
Android Studio Alammanager in battery saver mode
I need some help.
Alarmmanager only works for me if I turn off battery optimalization (saving) mode for the app. (with this permission: "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS")
How can I fix it or is there an alternative solution…

Ádám Rozinka
- 25
- 4
1
vote
0 answers
Is there a way to see what time the phone was last placed in battery saver mode?
In my situation, I am using the Strava app on a Pixel 2 and noticed that my phone was in battery saver mode at the end of the run. I chalked that up as the reason why my usual running route was 0.2 miles off compared to the previous runs on the same…

Jarvis
- 392
- 1
- 6
1
vote
1 answer
Battery saver (and Night mode) on Android 9 Pie relaunches whole activity, how to prevent this?
When I run my app on device (Google Pixel 2) with Android 9 Pie and switch on (or switch off) battery saver, whole activity immediately relaunches.
When I switch on battery saver on lower versions of Android like 6, 7 and 8, app continues normally…

Lohi
- 547
- 4
- 15
1
vote
1 answer
Control low battery mode from an iOS application
I would like switch on/off low power mode in an application. Is it possible to control battery mode from an iOS application.

Muruganandham K
- 5,271
- 5
- 34
- 62
1
vote
1 answer
App freezes for a second on REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
I'm working on an app that requires active working service so to avoid Doze Mode I've write code that'll show a default dialog to ask that this app will consume more battery and all. But the main problem here is before showing that dialog app…

Ashutosh Sagar
- 981
- 8
- 20
1
vote
1 answer
adding an app to battery saver programmatically when the app is installed
i developed an Android application, it contains so much background services and it uses Medias unfortunately this app is draining the battery life fast
i search the web but i didn't reach a good solution, i'm asking if possible how to put the app…

evalboy
- 41
- 1
- 7
1
vote
2 answers
Android app appears in Battery Optimizations whitelist, but is not actually there
Background:
I am developing an Android app. When the app starts up, it checks to see if it is excluded from Battery Optimizations using the isIgnoringBatteryOptimizations() function. If that function returns false, I use the…

paperduck
- 1,175
- 1
- 16
- 26
1
vote
0 answers
how to enable power saver mode in android samsung mobile
Kindly give some example or idea for enabling the power saver mode from android code for samsung devices as well as moto devices programmatically.Or else kindly give some example for navigating the user to the battery saver settings page from app.

aashish cool
- 21
- 2
1
vote
0 answers
Battery optimization whitelist doesn't work
I have an IntentService in my app that do some work in foreground mode. The code like this:
protected void onHandleIntent(@Nullable Intent intent) {
while (i < 100){
task();
i++;
}
}
public void task(){
//To do work and then
…

Delphian
- 1,650
- 3
- 15
- 31
1
vote
1 answer
Detect DRX mode (android)
I wanted to check if my android device is going into DRX mode.
[1] I was looking for an existing app that could tell, but I haven't found one..
[2] Is there a software to connect directly to the device that will measure it ?
[3] Is there a smarter…

Sophie
- 13
- 2
1
vote
1 answer
PoweSavingMode Vs App optimization
I need to know if there is any battery saving policy with the whole system or specific to my app.
I found out that you can check if the Power Saving Mode is activated or not by calling:
PowerManager oPowerManager = (PowerManager)…

Ton
- 9,235
- 15
- 59
- 103
1
vote
1 answer
IOS9 Push Battery Saver Mode - didReceiveRemoteNotification not called
On IOS9 if an iPhone is in battery save mode, the callback
application:didReceiveRemoteNotification:fetchCompletionHandler:
is not called. Instead I get the following warning in the console
High Priority Push: com.your-company.app - Battery…

Werner Kratochwil
- 382
- 3
- 13
1
vote
0 answers
Launching a service periodically, drains to much battery
I am designing a service that runs in the background and triggers every hour for some small work. While the app is running, the service will trigger every 10 seconds, and after app quit go back to 1 hour interval.
It is very important for my app to…

reggaemuffin
- 1,188
- 2
- 11
- 26