Hi All,
Thought id share this solution i found. If you need one digital input from the outside world whilst running on battery then use this method from the phone lib
Response time is < 3 seconds which is good enough for my application.
Cheers
Ray
Thought id share this solution i found. If you need one digital input from the outside world whilst running on battery then use this method from the phone lib
B4X:
Dim PhoneEvents1 As PhoneEvents
Sub thePhoneEvents_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
'Get the battery level on change event
digitalInputState = Plugged
End Sub
Response time is < 3 seconds which is good enough for my application.
Cheers
Ray