G Gsquared Member Licensed User Longtime User Sep 21, 2012 #1 Hi folks, I stumbled on this "BatteryManager" class in the following Android developer site: BatteryManager | Android Developers Is this implemented in Basic4Android? If so, how do I access it. I'd like to use some of these data in an app. Thanks, G^2
Hi folks, I stumbled on this "BatteryManager" class in the following Android developer site: BatteryManager | Android Developers Is this implemented in Basic4Android? If so, how do I access it. I'd like to use some of these data in an app. Thanks, G^2
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2012 #2 This class only holds constants related to the battery intent. It is used internally by PhoneEvents (which exposes the BatteryChanged event). Upvote 0
This class only holds constants related to the battery intent. It is used internally by PhoneEvents (which exposes the BatteryChanged event).
G Gsquared Member Licensed User Longtime User Sep 22, 2012 #3 Thanks Erel, Is there a way to access the battery temperature using PhoneEvents? Best, G^2 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2012 #4 The intent passed to BatteryChanged event contains all the information. You should check the extra key: "temperature" Upvote 0
The intent passed to BatteryChanged event contains all the information. You should check the extra key: "temperature"
R Ramezanpour2 Member Licensed User Longtime User Jun 2, 2015 #5 @Erel how can get the time that ramaining battery charge Upvote 0