Questions tagged [batterymanager]

The BatteryManager class contains strings and constants used for values in the ACTION_BATTERY_CHANGED Intent.

The BatteryManager class contains strings and constants used for values in the ACTION_BATTERY_CHANGED Intent.

130 questions
0
votes
1 answer

Time interval to update battery infomation in Android-based phone

How long will it take for Android OS to update battery information ? (for example file in "/sys/class/power_supply/battery/current_now") Thanks
Reza
  • 739
  • 1
  • 10
  • 24
0
votes
1 answer

Estimated time required to charge battery in iOS

I am developing an iOS app, In which I need to calculate the estimated time required for charging the battery. I need to display like "Estimated time to get completely charged in 1:30 minutes". I googled on this, but they all are displaying only…
Rakesh
  • 1,177
  • 1
  • 15
  • 31
-1
votes
1 answer

Is there any way to read the battery permissions of xioami(Redmi) for background process?

I implemented one service which takes location of user for every 3 mins but the problem in xiaomi is default app gets battery saver option because of that it's not updating location.Is there any way to find this and enable?? By default it is…
-1
votes
1 answer

reduce battery consumption for android application

I deigned an android application that uses PJSIP library and i am able to make calls using some sip id now i want to reduce the battery consumption of my application. How to approach to that. I tried with various options given in Google's official…
Samyak Upadhyay
  • 573
  • 1
  • 12
  • 24
-1
votes
1 answer

Android cannot resolve symbol: Context.BATTERY_SERVICE

for an App I need to monitor the Average battery current in micro amperes. I did it like described here: https://source.android.com/devices/tech/power/index.html#device-power private long getPowerConsumption() { BatteryManager mBatteryManager; …
dju
  • 129
  • 4
  • 18
-2
votes
1 answer

How do I ensure that my app keeps working regardless of phone state?

I'm trying to make an app with some scheduled tasks and an accessibility service logging info behind it. The problem I see right now is that my tasks, which I use WorkManager to run the Workers at the time of the event, sometimes they don't run at…
-2
votes
1 answer

Alarm Manager BrodcastReceiver

i want to make my app when Battery Be Low Like from 6% to 4% Make a Push a Notification every 1 Minute while app is Close i was Use background Service and Use BrodcastReceiver and many other things But all tell me Alarm manger will work with my…
-2
votes
1 answer

How do I put a warning/message on a specific number of a counter?

I am using a system in my website that identify the amount of battery the user have in his phone, the system is "battery-api". I would like to insert a warning when the battery is over 10% (for example) like, "Hey, you need to charge your phone, you…
-2
votes
2 answers

how to fetch battery status with hours,minutes and seconds in IOS?

How to display battery status in uilabels (hours ,minutes and seconds) (03:49:33) . when battery dying decrease the time. how to check battery status
indraIOS
  • 3
  • 1
-3
votes
1 answer

Getting the remaining energy of the battery?

Hy i am just developing and energy profiling application for which i need to have current energy of battery in nanowatt-hours. I have tried using Battery Manager API but the problem with it is that it requires a certain micro-chip called fuel-gauge…
Saad Saeed
  • 83
  • 6
1 2 3
8
9