#AdditionalJar: com.google.android.gms:play-services-maps
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim mf As MapFragment
Dim gm As GoogleMap
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")
Activity.LoadLayout("frm_main")
If mf.IsGooglePlayServicesAvailable = False Then
ToastMessageShow("Please install Google Play Services.", True)
End If
End Sub
Sub mf_Ready
gm = mf.GetMap
Dim m1 As Marker = gm.AddMarker(10, 30, "test")
m1.Snippet = "This is the snippet"
End Sub