B4i Question GetBatteryLevel - Filippo    Jun 8, 2022 Hi,
with this function "GetBatteryLevel" of Erel you can query the battery status....addObserver(self, selector: Selector(("batteryLevelDidChange:")), name: NSNotification.Name.UIDeviceBatteryLevelDidChange, object: nil)
// Stuff...
}
func batteryStateDidChange(notification... B4A Question Reload the battery level - Rubens Jr. (first post)    Aug 22, 2022
Nowadays lithium batteries are usually intelligent, using a primitive micro-controller, and regulate themselves - and tell Android what their charge level and other status is. Also the battery management on Android is quite complicated and low level to ensure the best use of the battery. So no... B4A Question [SOLVED] I need to get battery level - boralogy    Mar 15, 2015 hi,
I need to get battery level but os library returns NULL.
Could you help me?... B4i Question How to read device battery level? - Turbo3    Dec 21, 2014 How can we read the iOS device's current battery level?... B4A Question Return current battery level and if on charge - ElliotHC (first post)    Jun 19, 2019 I've just found it.
Sub B_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
Log("BatteryChanged: Level = " & Level & ", Scale = " & Scale & ", Plugged = " & Plugged)
End Sub... B4A Question Force Battery_changed evento or query battery level - diego (first post)    Sep 30, 2018 Thanks, I had moved pe.Initialize inside Sub Activity_PermissionResult. Now I put after Wait for permission and it's OK.... B4A Question BatteryChanged vs Polling Battery Level - State change Vs Instantly checking - JohnC (first post)    Feb 10, 2016 Erel, that was VERY helpful to mention the "sticky" attribute of this. Thanks.... B4A Question BatteryLevel of OSLibrary is not working - JoanRPM (first post)    Mar 31, 2015 (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
Log("BatteryChanged...Yes it works.
I added a Java method to see if it is charging.
public boolean getBatteryCharging... B4A Question Battery Level Management - Erel (first post)    Jul 2, 2013 No. It is handled internally by the OS.... Italian Help BatteryLevel - fifiddu70 (first post)    Apr 25, 2012
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub PE_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
Log("BatteryChanged: Level... Page: 1   2   3   4   5   6   7   |