Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim GoogleMapsExtras1 As GoogleMapsExtras
Dim MapSettings As MapUiSettings
Dim StT As VoiceRecognition
Dim tim As Timer
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 gmap As GoogleMap
Private scale As MapScaleView
Private Map As MapFragment
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("mymap") ' Google Map and Scale view are here !
scale.Initialize("")
End Sub
Sub Map_Ready
Log("map ready")
gmap = Map.GetMap
If gmap.IsInitialized = False Then
ToastMessageShow("Map init error", True)
Else
gmap.MyLocationEnabled = True
scale.InitializeScaleView(gmap)
scale.Visible = True
GoogleMapsExtras1.SetBuildingsEnabled(gmap, True)
End If
End Sub