Questions tagged [battery-saver]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

Android Service Stops after a while

my code runs at Android 5.1 (API level 22), in my application ondestroy activiit i will start my service for background works. for a while everything goes normal and service is in running state. bu ...
Murtaza's user avatar
  • 41
0 votes
0 answers
25 views

Sending & Receiving Large Data Packets with ChannelClient in WearOS

I use the ChannelClient for the transmission of large data packets between a WearOS device and a smartphone. Does ChannelClient automatically compress the data during transmission, or would it be ...
Jonas W's user avatar
  • 85
1 vote
0 answers
146 views

Optimizing a CoreML model for real-time object detection on low-power iOS devices using Swift

Background: I have experience working with Swift and CoreML, and I'm interested in creating a real-time object detection system that can run on iOS devices. I have a pre-trained CoreML model that I ...
Amruthaprasad's user avatar
0 votes
1 answer
887 views

Can we turn on or off battery saver mode programmatically using Kotlin in Android?

I want to create an application that will turn on and off power saver mode within itself programmatically with on a button click using android-Kotlin.  I have tried using the intent filter, but it ...
Yashwant's user avatar
0 votes
2 answers
565 views

Is there any way to control charging in android programatically without using any third party Apps?

We have an Android Application which has to be installed at Client Location in Tab and the tab has to be charged and running continuosly without getting tab turn off which leads to battery health drop....
Soujanya b's user avatar
2 votes
1 answer
2k views

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 ...
sebasira's user avatar
  • 1,764
0 votes
1 answer
511 views

How can I keep app running through Ultra Battery Saver mode / Adb shell uninstall Ultra Battery Saver ? (No root)

I am trying to disable the option to start ultra battery saver mode on Miui 11 without root acces. Is it possible to do this? I have tried to uninstall com.miui.securitycenter which helps up untill ...
Alpha13's user avatar
1 vote
0 answers
229 views

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&...
Ádám Rozinka's user avatar
2 votes
2 answers
1k views

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 ...
homayounKh's user avatar
5 votes
1 answer
4k views

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 ...
mdroid's user avatar
  • 474
0 votes
1 answer
1k views

Android sensors don't gather data when phone is idle

I’m trying to develop an app for Android in which I pick up data from several sensors (if available on the device) and write it down to a file which will later be analyzed for certain uses. I’m facing ...
Louen's user avatar
  • 37
0 votes
1 answer
1k views

Battery saver feature prevents WorkManager to be executed

Devices such as Huawei, Xiaomi, some Samsung models, or most of the devices I know that has MIUI, EMUI in their system has by default turned on battery saver features and automatic "optimizations". ...
Furkan Yurdakul's user avatar
1 vote
0 answers
22 views

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 ...
Jarvis's user avatar
  • 392
4 votes
0 answers
660 views

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 ...
user avatar
10 votes
1 answer
3k views

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 ...
Martin Prikryl's user avatar
6 votes
1 answer
6k views

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 ...
Rasheed's user avatar
  • 542
1 vote
1 answer
1k views

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 ...
Lohi's user avatar
  • 547
2 votes
1 answer
525 views

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 ...
Johnny Egeland's user avatar
2 votes
0 answers
81 views

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 ...
UlSilverDragon's user avatar
0 votes
1 answer
128 views

Link in video not clickable on mobile (iOS) in power saving mode

I have an autoplay video on my site which also serves as a link to another page. But now I found a problem in the power saving mode of the iPhone. Clicking on the video plays the video. But when I ...
Mauro's user avatar
  • 111
0 votes
1 answer
580 views

Bluetooth service optimized, Android

I have an app that uses BLE to exchange data with a BLE-capable device. I used to develop and test it using Asus Zenfone Max 3 (Android 8.1) and I had no problems. Then, I got an Asus Zenfone Max Pro ...
MMasmoudi's user avatar
  • 528
3 votes
1 answer
3k views

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 ...
Shafeeq Mohammed's user avatar
1 vote
1 answer
1k views

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's user avatar
6 votes
0 answers
650 views

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 &...
Mando's user avatar
  • 11.5k
11 votes
1 answer
477 views

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 ...
majov's user avatar
  • 545
1 vote
1 answer
125 views

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 ...
Ashutosh Sagar's user avatar
-2 votes
1 answer
410 views

How to reduce the battery power consumption?

In my application I'm using Google Maps and getting latlon from onLocationChanged(), while it's running in background and also getting that value using services. Due to this, a lot of battery power ...
MurugananthamS's user avatar
1 vote
1 answer
487 views

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 ...
evalboy's user avatar
  • 41
0 votes
1 answer
50 views

C client-server application and battery saving on linux

Could someone explain me please, how i can achieve the most efficient battery saving: I want to code a simple client-server app. Server sending periodic messages to client (let's say 'hello'), and ...
nobody47's user avatar
1 vote
2 answers
946 views

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 ...
paperduck's user avatar
  • 1,185
1 vote
0 answers
468 views

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 ...
aashish cool's user avatar
-1 votes
1 answer
958 views

How to reduce battery usage of app?

I am developing an app which tracks the user location for every 10-20 secs. In order to make it work in the background and mobile locked stage, I had to make the following code edits: In Android: I ...
Praveen Baruri's user avatar
28 votes
2 answers
3k views

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 ...
android developer's user avatar
0 votes
1 answer
87 views

Android battery consumption issue

I have developed one android app which working well with all devices but with Galaxy S8 only consumed more battery compare to other devices. How to can handle battery consumption for S8 ? There are ...
ViramP's user avatar
  • 1,679
1 vote
0 answers
747 views

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++; ...
Delphian's user avatar
  • 1,670
4 votes
1 answer
1k views

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 ...
Dinesh Chitta's user avatar
0 votes
0 answers
31 views

Oportunistic packet send on Android

Say I have an app that needs to send some small packets from time to time to a server, no particular interval (well maybe a maximum interval). Since one doesn't want to wake the CPU+radio+other SoC ...
David G.F.'s user avatar
3 votes
1 answer
1k views

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's user avatar
  • 1,155
1 vote
1 answer
299 views

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 ...
Sophie's user avatar
  • 13
0 votes
0 answers
82 views

Using Power Profile can i calculate battery remaining time and discharge time in android [duplicate]

I am new in android and i make battery optimize application. I want to calculate battery remaining time and discharge time. And i also want to calculate Wifi, 3G Call, Movie, Music and Bluetooth ...
akhil Batlawala's user avatar
2 votes
1 answer
90 views

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 ...
lakshitha madusanka's user avatar
0 votes
1 answer
123 views

SD Card Shared SPI High Current Consumption

Hi I am using shared SPI Lines between External Flash and SD Card. For SD Card i use MSP430's SPI Engine, however for External Flash I am using same SPI Lines but as GPIO BitBanging. The SD Card is a ...
Feroze Mohamed's user avatar
0 votes
0 answers
87 views

Battery usage by running application in android os

How to get battery usage by running application.its start with when my mobile battery is full to till.my application required list with each battery usage in percentage. I already try this ...
Mangal's user avatar
  • 56
5 votes
1 answer
1k views

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 ...
kiran joseph's user avatar
0 votes
1 answer
129 views

iOS: How to use location tracking during predefined time period while saving battery life?

iOS: How to use location tracking during predefined time period while saving battery life? I need to activate location tracking during predefined time periods (does not matter if app in background or ...
Rufat AA's user avatar
1 vote
1 answer
578 views

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 ...
Ton's user avatar
  • 9,327
0 votes
1 answer
2k views

FragmentTransaction.setCustomAnimations() doesn't work when battery saver is on

I'm using custom animation (sliding from left to right) on transition between fragments. But when battery saver is on after calling FragmentTransaction.commit() second fragment is not showing. ...
Yuriy's user avatar
  • 1,466
4 votes
2 answers
1k views

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 ...
udenfox's user avatar
  • 1,604
2 votes
0 answers
372 views

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 ...
user3365407's user avatar
1 vote
1 answer
3k views

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 ...
Werner Kratochwil's user avatar