#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: PhoneStateListener
#VersionCode: 1
#VersionName:
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Private b1, b2, b3 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
b1.Initialize("b1")
b2.Initialize("b2")
b3.Initialize("b3")
Activity.AddView(b1, 10%x,10%y,30%x,10%y)
Activity.AddView(b2, 40%x,10%y,30%x,10%y)
Activity.AddView(b3, 70%x,10%y,30%x,10%y)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub b1_click
StartService(Listener)
End Sub
Sub b2_click
StopService(Listener)
Listener.PSL.stopListening
End Sub
Sub b3_click
End Sub