Hi,
I want to execute a loop with event batterychanged. In particular I create this code:
Sub PE_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
Dim l As Int
l = Level
If l = Level
While l < 10 Do
Msgbox ("Inserire alimentazione", "Batteria scarica")
Loop
End Sub
but the value of level doesn't change. How can I get the new value of level, if I charge the battery?
I want to execute a loop with event batterychanged. In particular I create this code:
Sub PE_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
Dim l As Int
l = Level
If l = Level
While l < 10 Do
Msgbox ("Inserire alimentazione", "Batteria scarica")
Loop
End Sub
but the value of level doesn't change. How can I get the new value of level, if I charge the battery?