battery Questions

1

Solved

I am trying to check if device's charging port is working fine. There are two scenarios - a. when the charging cable is already plugged in. b. when the charging cable is plugged in after sometim...
Downbow asked 7/9, 2017 at 12:31

1

Solved

This is simple code of my simple batteryLevel Test app. - (void)viewDidLoad { [super viewDidLoad]; UIDevice *device = [UIDevice currentDevice]; device.batteryMonitoringEnabled = YES; mLabel.te...
Apartheid asked 9/9, 2011 at 10:38

2

I have tried powerprofile of Android....I have tried this code...but it gives me 1000 answer every time in all the devices... Is there any other way in android to get battery capacity... Eg.if mobi...
Unconquerable asked 17/1, 2015 at 9:25

0

Samsung Android 7.0 has the warning notifications for putting my App to sleep. This will even kill the sticky service. Is there any way to add my app to the "Unmonitored Apps". Or use intent to bri...
Granny asked 6/9, 2017 at 20:17

1

Solved

How to get battery percentage with python? Maybe some win32api functions may help.
Incredulity asked 11/8, 2017 at 4:25

1

Solved

I am doing a network call every 15 seconds in my app, and if the users device battery percent is lower than 20%, than I would like to do the call every 30 seconds instead. How do I get the user's d...
Anagnos asked 10/6, 2017 at 9:30

2

Solved

Okay, so I'm working on an AppWidget that checks the battery level and displays it on a TextView. My code looks like this: public class BattWidget extends AppWidgetProvider { private RemoteViews ...
Interrupt asked 2/10, 2011 at 6:4

3

My intention is to have saved in Preferences current status of Android device usb/power cable: connected/disconnected. From Developer site I see that there are two Intent for obtaining that status:...
Tungstic asked 8/1, 2013 at 15:0

0

I have found this application on App store in which they are showing battery temperature value. Can anyone help me to know how they are doing it?
Peril asked 19/10, 2016 at 7:45

1

Solved

Looking for an explanation on tree parser vs stream parser. From what i have been researching the JSON build-in parser in android is a tree parser and the Jackson Json parser is a stream parser. ...
Revolting asked 22/8, 2013 at 14:13

3

Using this code, I can find the battery level of the phone: int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1); ...
Fullfaced asked 17/2, 2016 at 6:5

6

Solved

I have a broadcast receiver in my program to get react to the battery level like so: private BroadcastReceiver mBatInfoReceiver = new BroadcastReceiver(){ @Override public void onReceive(Context...
Sarah asked 7/9, 2010 at 18:21

2

How can I detect battery charging speed in android device? I can detect battery status using below code. but not charging speed. IntentFilter filter = new IntentFilter(); filter.addAction(Intent.A...
Olives asked 12/8, 2016 at 7:44

8

Solved

I am trying to collect power usage statistics for the Android G1 Phone. I am interested in knowing the values of Voltage and Current, and then able to collect statistics as reported in this PDF. ...
Usquebaugh asked 13/3, 2010 at 19:4

4

Solved

I'm currently trying to improve the battery usage of the app we're developing. The only thing I found was percentage with a jailbreak solution (here), I did not find absolute value like 3.4 mAh/...
Billposter asked 11/9, 2013 at 12:34

5

Solved

I'm wondering is it possible to receive information about battery like: capacity (mA), voltage (V), cycle count within iOS? I know UIDevice class, but battery level is not what I'm looking for.
Elias asked 10/9, 2012 at 6:16

2

Solved

There are currently apps in the app-store (so it does not require jailbreak) that tell you : Exact percentage value of battery level you have on your iPhone. I have tried Apple's official Code Sa...
String asked 15/3, 2016 at 23:33

3

My current project is a constant-presence application (think Tinder or Foursquare), and the battery consumption is through the roof. We think the main draw on power are the GPS and WiFi antennas. W...
Mcgruter asked 18/7, 2014 at 18:46

2

i have added a feature in my app that uses the proximity and accelerometer sensors (the second is to detect shakes). This is implemented in an always running service (if the user selects it of cour...
Diplomatic asked 26/1, 2014 at 11:54

5

Solved

I have a smartphone connected to a solar charger. By day, it is powered correctly. But during the night, sometimes it turns itself off due to the lack of energy. My question is : It is possible to...
Sprit asked 4/1, 2016 at 22:29

7

Solved

Reading a battery voltage in an embedded device. However, the actual voltage varies greatly depending upon system load. We need a method to reduce the fluctuation of the voltage to display the best...
Gustation asked 1/4, 2011 at 17:16

2

Solved

A friend of mine recently inherited an old laptop and has freshly installed windows 7, and wants to increase the battery life. Initially the battery lasted around 20mins, but by manually allowing t...
Bloodstone asked 23/12, 2013 at 17:58

2

Solved

I am currently developing an application using qt targeting a tablet running ubuntu 14.04 Since there is only a poor battery indicator on the device and the application will run fullscreen for pro...
Showoff asked 11/6, 2015 at 8:54

3

Solved

I'm trying to get battery stats in my application for some benchmarking. The wonderful BatteryManager.BATTERY_PROPERTY_CHARGE_COUNTER lets me query the device's micro-amps which is great. However, ...
Sorry asked 9/6, 2015 at 14:31

1

Solved

I want to setup a Playground to fetch the battery status of my macbook. I have already tried the following: import Cocoa import IOKit import Foundation var blob = IOPSCopyPowerSourcesInfo() I ...
Gentille asked 26/7, 2015 at 4:2

© 2022 - 2025 — McMap. All rights reserved.