I'm Having Issues when I try and create a PhoneEvents object all I get is an Error, I'm using v2.71 can anyone tell me where I'm going wrong with the code
I'm new to B4A so any help would be appreciated
thanks in advance
I'm new to B4A so any help would be appreciated
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim PhneEvnts As phoneevents
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim lblBatLvl As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'PhneEvnts.Initialize("")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub PhneEvnts_BatteryChanged (Level As Int, Scale As Int, Plugged As Boolean, Intent As Intent)
lblBatLvl.Text = Level
End Sub
thanks in advance