Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Button1 As Button
Dim gps1 As GPS
Dim esl As ESLocation2
Dim on As Boolean
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
If FirstTime Then
gps1.Initialize("")
esl.Initialize("")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
If on Then
on = False
gps1.stop
esl.stopGPSListening
ToastMessageShow(on, False)
Else
on = True
gps1.Start(0, 0)
esl.requestGPSLocation(0,0)
ToastMessageShow(on, False)
End If
End Sub