battery Questions
2
Solved
Suppose If change the battery level to any desired value(say from current 50 to 20)
adb shell dumpsys battery set level 20
Now I want adb command to fetch the current battery level(ie 20).
With th...
10
I'm developing a game for Android. It uses a surface view and uses the sort of standard 2D drawing APIs provided. When I first released the game, I was doing all sorts of daft things like re-drawin...
Olva asked 25/2, 2011 at 23:55
6
Solved
There is some easily available information on finding the status of a battery, or whether it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).
I w...
Vivacity asked 7/7, 2009 at 11:20
3
I'm looking for a way to open the battery settings screen from an android app.
So far I found the two intents :
Intent.ACTION_POWER_USAGE_SUMMARY
Settings.ACTION_BATTERY_SAVER_SETTINGS
but non...
Ictus asked 16/1, 2018 at 12:34
2
Solved
I'd like to confirm the battery usage of an app I am developing on iOS, specifically on Xcode 13 and iOS 15. (Note: This app previously showed no issues with battery usage on previous versions of i...
Vlad asked 28/9, 2021 at 1:59
12
Solved
How can I get battery level and state (plugged in, discharging, charging, etc)? I researched the developer docs and I found a BatteryManager class. But it doesn't contain any methods, just constant...
6
I've tried to do as much research as possible but can't find an answer to this fairly simple question (want to figure this out before I'm going to set up the SDK and everything).I'm thinking about ...
1
With the below adb command I am able to get current battery level(as shown in image.
adb shell dumpsys battery | findstr /r /c:level
I am getting response as level: 12
Is there any way to get onl...
3
Solved
I know that battery discharge on a 4.15V Li-Ion is not linear, so I would like to have some equation that I can apply in my code to show the correct battery percentage.
I can't find any good reso...
Feretory asked 23/5, 2019 at 1:12
1
I am trying to check if Android 12 is optimizing my app battery usage, so I used
isIgnoringBatteryOptimizations method (
https://developer.android.com/reference/android/os/PowerManager#isIgnoringBa...
Schwing asked 6/2, 2022 at 5:7
5
Solved
How can I read the status of the battery on my MacBookPro from my own application?
Googling has so far only revealed APIs for device drivers to handle power events - there's nothing about user-lan...
5
I'm trying to build an app which gets battery level of currently connected Bluetooth headset. This app can be used on phones which don't have this functionality built-in.
While searching on stackov...
Viaticum asked 26/10, 2018 at 6:36
3
I am using a MacBook and the battery is unreliable. I am trying to find a script command that will enable the laptop to play a beep when the battery level is lower than a threshold. After some sear...
Diocletian asked 1/1, 2019 at 17:20
6
Solved
I am looking to figure out both the current Battery Capacity and the Design Capacity.
So far what I could get to work is using the Win32_Battery() class which doesn't give all the information I ne...
5
Solved
/!\ THE USE OF window.navigator.battery IS STRONGLY DISCOURAGED AND THIS ISSUE IS NOW NOT WORTH CHECKING THANK YOU /!\
I want to get the battery level of the current system. Here is the output I i...
Latifundium asked 4/11, 2015 at 11:53
2
Solved
I read some articles about battery life, for example http://www.wired.com/gadgetlab/2013/09/laptop-battery/
And I am curious, could I manage battery charging process? Is there a functions to manu...
7
Solved
I'm using this function to get current battery level of device:
[[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];
UIDevice *myDevice = [UIDevice currentDevice];
[myDevice setBatteryMoni...
Refutative asked 4/8, 2012 at 9:0
3
Solved
I'm developing an app that should alert an user if is near a place.
and of course have to do that also if the phone is in idle.
With DOZE now I understood that I have to whitelist my app, and to do...
Sidhu asked 11/1, 2017 at 16:57
1
Solved
I am working on VoIP calling applications and calls are getting missed which are sent over FCM when battery saver is on on MIUI. This is happening very frequently.
I want user to open Battery save...
1
i'm doing wireless sensor node using (esp32, DHT11, soil moisture and nrf24l01) and i want to add an battery to supply those sensors, also need to measure battery voltage.
For the battery, voltage ...
3
FCM push notification is working in following devices properly when the device is in the background, foreground and also when an app is close by swiping from a tray.
Brandname (android-Version)
Mi...
Abscissa asked 5/9, 2018 at 6:3
1
Solved
Background
Google has announced on Google IO 2018 something that's called "Adaptive battery":
https://youtu.be/ogfYd705cRs?t=3562
As a user, this sounds promising, but as a developer, this could...
1
Solved
I needed a VBA procedure to retrieve the system's current battery charge level and charging status.
I was surprised not to find anything on Stack Overflow, and I eventually figured it out, so I'll...
Misinterpret asked 12/6, 2018 at 10:17
2
Solved
I'm looking at implementing a beacon based app to do some location tracking based on beacon placement. From what I've read and understood, beacon monitoring is fairly innocuous on battery life but ...
Abseil asked 21/3, 2015 at 17:14
3
Solved
As of Kitkat (4.4) Android reports that my app is "High battery use".
I use Network Location as well GPS. If I disable GPS, then it seems the app gets marked as "Low battery use".
I'm wondering ...
Nephritic asked 15/11, 2013 at 23:34
1 Next >
© 2022 - 2025 — McMap. All rights reserved.