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

Android Bluetooth LE disabling notification callback drain battery?

I'm developing an application that connects to a Bluetooth Low Energy Device. The architecture of the program requires it to collect data from this device in bursts. Example: Collect data for 30 seconds once every 3 minutes. It is very important for…
3
votes
0 answers

Quantifying Battery Drain in Android

Currently, I am trying to quantify amount of battery (in percentage or mAh) drain by my App in background vs foreground mode. From: How can we calculate/ to know, how much battery life my user defined application utilising? It looks like, we need to…
ssk
  • 9,045
  • 26
  • 96
  • 169
3
votes
1 answer

Battery-safe coding

I was wondering if there are some rules or hints how to prevent battery drain directly while coding. I know that there may be some ways to code to minimize workload on the processor or prevent leaks. However, does anybody have something like a guide…
Corona
  • 685
  • 1
  • 10
  • 15
3
votes
0 answers

Android problems with fused location provider

I develop an application which needs to be location aware. I tried to use the new google api client but i have some problems. 1.When i ask for location I ask for PRIORITY_HIGH_ACCURACY but i want the user to have the choise to save his battery by…
3
votes
0 answers

Read iOS Device's Battery Percentage Over USB Connection

Assuming I'm able to get MFI approval for a project. hypothetically of course I want to know if there is any way to read/query a USB-connected iOS device for its battery percentage/charging status WITHOUT needing to have an special app installed on…
CABOLL
  • 31
  • 3
3
votes
1 answer

Android Battery Profiling. Calculate Battery Cycle

I am developing a Battery profiling app and I am stuck at calculating total Battery Cycle for the device. Does anyone have idea about how to get this value either in API way or from adb command ? Or is there any hack possible ? Any help would be…
snehal_penurkar
  • 273
  • 1
  • 3
  • 15
3
votes
1 answer

Is there any way to obtains CMOS Status?

I would like to know, 1) Is there any way to access status of CMOS Battery in android(specially in Sumsung)? Or 2) Is there any API or some classes/Methods which can access CMOS battery? I didn't find anything on this subject... Thank you guys !
3
votes
1 answer

Calling PowerStatus.BatteryChargeStatus.ToString() sometimes returns 0

So my method is as follows: PowerStatus powerStatus = SystemInformation.PowerStatus; if (powerStatus.BatteryChargeStatus != BatteryChargeStatus.NoSystemBattery) { var batteryStatus = powerStatus.BatteryChargeStatus.ToString() } From my test…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
3
votes
2 answers

Checking battery level in the background with a service

I've searched a lot but I'm always more confused. I have to create an app that works on background and checks the battery level. How can I create the Service? The Service should start on the device boot and must communicate with the Activity when…
Nick21
  • 107
  • 2
  • 10
3
votes
0 answers

How to ues "dumpsys batterystats" to get a app's Power Consumption‘s Percentage

I want to know how can i get the information of the percentage of a app's use of battery
asting
  • 31
  • 2
3
votes
1 answer

Battery effects of web apps?

I am learning about mobile web apps, and they look interesting. Among other things, I am wondering whether there is a significant difference in battery consumption between the native apps and web apps? (Phonegap, intel xdk, etc)?
user3289157
  • 645
  • 2
  • 13
  • 24
3
votes
1 answer

How to get Battery Health Using C#

I'm trying to get two values, DesignCapacity and FullChargeCacity, but they are not returning a value. I'm using the code below: public static bool CheckBattery() { bool _testResult = false; string computer = "."; try { …
3
votes
0 answers

Android Calculate Remaining time of battery and subsytems.

I wanted to calculate the remaining hours of battery and subsystem as talk time, websurfing, audio playback, video playback and standby. I used reflection to get private class com.android.internal.os.PowerProfile and android.os.BatteryStats. I…
Sa Vo
  • 41
  • 3
3
votes
1 answer

ANDROID: how does addProximityAlert() work exactly?

I'm looking for information about how "addProximityAlert()" exactly works At what intervals does it check? What happens if we use more than one addProximmityAlert(, do they work independently(do they check individually)?
Paramvir Singh
  • 2,354
  • 1
  • 20
  • 20
3
votes
0 answers

Disable upload after downloading with DownloadManager

I am using the DownloadManager to download my App-Data. After the downloading is finished I see in the Log following: I/iu.UploadsManager﹕ End new media; added: 0, uploading: 0, time: 151 ms many many times. It seems, that it tries to upload my…
Informatic0re
  • 6,300
  • 5
  • 41
  • 56