Questions tagged [battery]

A battery is a portable electrical power source which is often used in mobile devices.

An electric battery is a device consisting of one or more electrochemical cells that convert stored chemical energy into electrical energy.

Each cell contains a positive terminal, or cathode, and a negative terminal, or anode. Electrolytes allow ions to move between the electrodes and terminals, which allows current to flow out of the battery to perform work.

871 questions
2
votes
0 answers

Apps battery usage is high although no code is being execuded IOS Swift

I have an IOS Chat Application that lets users chat with each other and lets users join a video call. Therefore the app has a lot of pods installed. My problem now is that whenever I launch the app the battery usage is immediately at the border of…
Oscar Junius
  • 320
  • 3
  • 10
2
votes
1 answer

Adding constraint to limit battery cycling to 1 charge and 1 discharge every 24 hours

This enquiry is an extension to the question found in : '@Error: Solution not found' being returned when using gekko for optimization. "ind_1" and "ind_2" are lists of length 8760 containing 0s/1s. Certain hours of the year may earn additional…
luk
  • 41
  • 2
2
votes
0 answers

BATTERY_OPTIMIZATIONS not working even After Granting Permission from BATTERY_OPTIMIZATIONS Dialog in some Vivo,Oppo Devices

This is my Code:- AndroidManifest.xml Java side: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { …
karan
  • 95
  • 1
  • 2
  • 9
2
votes
1 answer

Getting error while estimating parameter for a battery using GEKKO in python

I am trying to match the simulated result from my model with the experimental result from lab. I have taken the idea from the solution given here: enter link description here Result before applying GEKKO method: I want the Simulated Curve to be…
N_T
  • 33
  • 1
  • 5
2
votes
0 answers

Samsung not persisting foreground services

A couple of years ago I gave up developing Android apps because Samsung stopped persisting foreground services. This move by the leading Android platform killed all of my apps. I'm familiar with dontkillmyapp.com but using all of those suggested…
Dean Blakely
  • 3,535
  • 11
  • 51
  • 83
2
votes
1 answer

Flutter app continues running in background and causes unwanted battery drain

I am developing a Flutter app that is meant to be used to control IoT devices that are connected to the local network. Unfortunately, while testing the app, I have experienced the following issue: According to the iOS settings app, the app is…
ThePC007
  • 41
  • 5
2
votes
1 answer

Optimizing battery usage for Mapbox Navigation SDK in Android

I'm working in a project that need to show a NavigationView inside a fragment. It's working fine but consume a lot of battery (and depending of the device in some increase temperature considerably). I checked the profiler in AS to try to identify…
Fer Juarez
  • 55
  • 1
  • 5
2
votes
1 answer

Permission to disable battery optimization keeps appearing on Android API 28 despite not being changed

This is happening me in a Xiaomi device, at least in emulator does not happen. To be more clear what's happening is the following: I need that battery optimization disabled to properly run some services from my app. But without changing…
user2638180
  • 1,013
  • 16
  • 37
2
votes
1 answer

Looking for APIs to measure battery use of a process

Question Is there an API for Windows and/or Linux that will let me find out which processes are draining battery? A few notes: It doesn't have to be precise, I'd be ok with only three levels (low energy cost/fair energy cost/high energy cost) if…
Yoric
  • 3,348
  • 3
  • 19
  • 26
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: How to control e-ink screen while off

My e-book reader (tolino shine 3) allows you to configure what the e-ink display should show when the screen is turned off. How can I do this programatically? I wrote a little app, that turns on wifi every 10 minutes to fetch and display the latest…
Clarenze
  • 41
  • 4
2
votes
0 answers

Endless foreground service never works as expected

I am creating application that has endless ForegroundService for new android versions. Problem is that ForegroundService always dies after some time no matter what. Tried to do Battery optimization, Wake lock, creating new process for service, even…
Antonis Radz
  • 3,036
  • 1
  • 16
  • 34
2
votes
2 answers

How to access the current battery status in an Ionic 4 / Angular + Cordova application?

Goal I would like to access the current battery status in an Ionic 4 / Angular + Cordova application. What I have tried I followed the instruction https://ionicframework.com/docs/native/battery-status on a clean blank Ionic 4…
JilReg
  • 382
  • 1
  • 3
  • 16
2
votes
2 answers

Pyomo: Minimize for Max Value in Vector

I am optimizing the behavior of battery storage combined with solar PV to generate the highest possible revenue stream. I now want to add one more revenue stream: Peak Shaving (or Demand Charge Reduction) My approach is as follows: Next to the…
2
votes
2 answers

iPhone Significant Location Change Battery Drain?

Question: Does the Significant Location Change background service drain battery easily? I'm trying to track longitude latitude readings when the there is a Significant Location Change. However, before starting, I just want to make sure that this…
Ryan
  • 2,650
  • 3
  • 29
  • 43