Questions tagged [batterylevel]

The amount of charge remaining in the battery of a portable electronic device

The battery level of a portable electronic device is a reflection of the amount of charge remaining in the portable battery of that device. This is an indication as to how long the device can last without being plugged into a power source before shutting down.

262 questions
1
vote
1 answer

Voltage and Temperature readout - Order of Magnitude issue

I'm reading out several values using the BatteryManager including voltage int volt = intent.getIntExtra(BatteryManager.EXTRA_VOLTAGE, -1); The problem is, that some devices return mV and others V (e.g. 5122 and 5). Question: Is there a way to…
DonGru
  • 13,532
  • 8
  • 45
  • 55
1
vote
0 answers

How can I get my bluetooth tws/headset battery level in flutter ? (individual buds battery level as well as case battery level)

I'm trying to build an app using flutter which gets battery level of currently connected Bluetooth headset or TWS.
1
vote
0 answers

3.7V li-po Battery Level Check using Arduino

I want to check battery level using Arduino. Arduino is powered by 3.7v Li-Ion Battery. using the same Arduino, I want to check check level of battery. Is it possible with Arduino's ADC? I am using following code :- void setup() { …
1
vote
1 answer

Check if battery charging status changes in real time Swift

I want to check if my iphone is charging or not and what percentage. Im able to get the percentage fine as well as knowing if its plugged in or not when i start the app, however im not able ot make it change status as i unplug the charger.…
Nisse82
  • 31
  • 7
1
vote
1 answer

How to Draw the battery level like on android or i-phones in WPF on the GUI

I want to display the battery charging status in WPF (xaml and c#) similar to how it's displayed on an android phone where the inner part changes according to the battery percentage like displayed in the picture is there anyway to do this without…
Death Guard
  • 380
  • 3
  • 15
1
vote
2 answers

To know the % charge of the battery using Arduino

I am using Arduino Nano and various Li-Fe , Li-Po batteries of 9.9V , 6.6V and 3.7V. I can read the voltage of the battery using Arduino . My Arduino works at 5V so for batteries like 9.9V and 6.6V I have used a voltage divider using two 10k…
Krupali Mistry
  • 624
  • 1
  • 9
  • 23
1
vote
0 answers

Is there a python function that detects current battery percentage?

I'm tracking my current battery percent right from the time it was unplugged from time to time. Sometimes I need to use the device (Windows 10 64 bit) even if it's not fully charge, so sometimes I unplug it at 86%, 95%, 82%, etc. so I need to track…
yalpsid
  • 235
  • 1
  • 13
1
vote
1 answer

How to measure battery usage of my application?

Well i have read a lot of answers of similar questions (even if they are old from like 2013-2014) and i understood that it is not possible to know it exactly since android doesnt count the hardware usage as usage of the app, and some other possible…
Steven_95
  • 75
  • 8
1
vote
3 answers

BATCH - How to get only a single line from a multi-line command output

The "Battery" icon in my Status Bar doesn't work, and I use a Windows Batch-Script to check the battery level. (I don't want a fix for the icon.) But, the output is kind of ugly, with no spaces and a plain number on the next line. So, How can i…
Suda
  • 234
  • 1
  • 4
  • 20
1
vote
2 answers

Get Battery Level on App Launch

In My app, I'm using "ACTION_BATTERY_CHANGED" intent to find battery level of the Android device. ** Problem:** consider If the device is having 1-20 as battery level, I need to show low battery icon in my application.I'm not able to show…
kavie
  • 2,154
  • 4
  • 28
  • 53
1
vote
1 answer

iOS background fetch fails when device battery is below 40%

We recently found that even though Low-battery mode is enabled or disabled, the background fetch fails when the device battery level is low. We haven't figure out what is the exact battery level it does support, as some of our test devices fail…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
1
vote
0 answers

Display Type of Charge

My Code Has 4 Different textviews that display 4 different text, the first 3 display True or false and the last one shows the % of battery 1 Battery charging 2 Battery UsbCharge 3.Battery AcCharge 4.Battery Life I Have The battery life working but…
user3215990
  • 53
  • 1
  • 1
  • 11
1
vote
0 answers

WINAPI: GetSystemPowerStatus update rate too slow

To access the Windows system's current power state (battery level, ac present etc.) from my C++ application, I'm currently using the following WinAPI function: BOOL WINAPI GetSystemPowerStatus(_Out_ LPSYSTEM_POWER_STATUS lpSystemPowerStatus); This…
jonas
  • 11
  • 2
1
vote
1 answer

What is the correct syntax for NotificationCenter to return batteryLevel and batteryState in Swift 3.1

I'm a newbie to Swift (using Xcode 8.3.3, Swift 3.1) and I'm trying to display battery level and battery state and update them when the values change. Here's what I have so far: import UIKit class ViewController: UIViewController { @IBOutlet weak…
1
vote
2 answers

Is there a way to use Android system generated notifications in our app

I'm creating an app and its mainly depends on the battery notification which we receive when our battery level is low like 15%. However I know how to get the battery level, but I thought what if there is a way to use the existing notification based…
Ajay Deepak
  • 471
  • 5
  • 9