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
4
votes
1 answer

Get the Battery status on windows 8

I searched over the Internet and the only thing that I found a little bit helpful was the way to get Battery status on Windows Phone 8. But I want it on Windows 8 (RT). Can anyone help me out?
Peyman
  • 3,059
  • 1
  • 33
  • 68
3
votes
0 answers

What should I use instead of navigator.getBattery()

I am looking for a navigator.getBattery() alternative. What I want to achieve is, that when you have under 30% of battery and you're not charging, it tells you to go charge. Right now I have this: navigator.getBattery().then(function(battery) { …
thisistemporary
  • 102
  • 1
  • 9
3
votes
1 answer

How do i optimise my python code which reads Battery Staus

Basically i was trying to make a Py script what runs in background to notify the user when to plug in the charger and when to disconnect the problem which i am facing is with the performance,The script uses more CPU time(May be because i used while…
3
votes
1 answer

I want to retrieve battery related information(Model information,health information,charge information) through terminal in mac os

I have tried the following command in macOS to get all the battery information: pmset -g batt The above command is displaying only one information(i.e 35% discharging). system_profiler SPPowerDataType | grep "Device Name" | awk '{print $3}' The…
Lushi Grey
  • 31
  • 1
  • 5
3
votes
1 answer

Android :How to get Battery status without Broadcast Receiver for API level 17 and above?

I want to get Battery status. I searched it on stack and i found the sample code using Broadcast Receiver but problem is that in my code i cannot use Broadcast Receiver. So is there any way to get battery status without using Broadcast Receiver. It…
Mayur Kharche
  • 717
  • 1
  • 8
  • 27
3
votes
1 answer

Android Battery Level Detect Issue

I am a new user to stackoverflow, this is my first post, if I have done anything wrong please feel free to tell me, thanks. I am developing an android application to monitor the battery level and change screen brightness, but I were got a weird…
Dragon957
  • 55
  • 7
3
votes
1 answer

How to get percentage of battery usage by each app in android programatically

I am making a demo for battery usage percentage by all apps.I am able to get the total available battery percentage but want to get battery usage by percentage by each app separate.So Is there any way to do so as lot many apps are available in…
sulphuric Acid
  • 585
  • 6
  • 23
3
votes
3 answers

Execute a piece of code on certain Battery Level in Android

I'm looking for a way of executing a piece of code within my Android application when the phone reaches 10% battery life. Would anyone be able to point me in the right direction of how to do so?
Paul Alexander
  • 2,686
  • 4
  • 33
  • 69
3
votes
1 answer

GPS position logging battery life

What is the best way to log GPS position (or data, to analyze) that wouldn't consume whole battery in few hours on Android? Is there some special way? Some of the tracking software available on market claim to be optimized for low battery usage.
Flash Thunder
  • 11,672
  • 8
  • 47
  • 91
3
votes
2 answers

Power profiles in android

I looked into http://source.android.com/devices/tech/power.html , where "battery.capacity" is there and "WiFi.on" ,"WiFi.active" are there, but how to use them any Ideas? thank you.
3
votes
0 answers

Determine how much each CPU cycle consumes battery life

For an Android application I need to know how much each CPU cycle consumes battery life. I would like to know how much energy that function used, is there a way to determine that?
3
votes
1 answer

How can I simulate battery drain on an android phone in a controlled fashion?

I want an app that drains the battery by using the CPU resources in a controlled fashion. Her, by controlled fashion, what I meant to say is that let's say 'X units/ms' is the maximum amount of the battery drain rate and the 'Y units/ms' is the…
VoodooChild92
  • 1,993
  • 3
  • 19
  • 24
3
votes
2 answers

Error Receiving broadcast Intent ACTION_BATTERY_CHANGED

I am trying to get battery information through the use of a broadcast receiver and store it in a database. I'd prefer to get it only when I specifically want it, but I am willing to keep a database of just running records of it. Anyways, The problem…
eddiecubed
  • 174
  • 1
  • 2
  • 12
3
votes
3 answers

Get Battery Level with BroadcastReceiver in Android Service

I have a code, that I need get the Battery Level of my Android device, but I have a big problem. I have an Android Service where I go get battery level and send by UDP. This is my Service code: public class Servico extends Service { String bateria…
Yuri Monteiro
  • 82
  • 1
  • 1
  • 8
2
votes
0 answers

Get the battery level of a bluetooth device on Raspberry PI 4

For a personal project, I need in a web (HTMl, php and js) app to get the battery level of a device (phone, tablet) connected to the raspberry pi in bluetooth in a Javascript file. My configuration: - Raspberry Pi 4 (4go) - Raspbian OS -…
BenjaminFB
  • 43
  • 1
  • 8
1 2
3
17 18