#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#AdditionalJar: com.google.android.gms:play-services-maps
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
'Activity module
Sub Process_Globals
Dim czas_old As Long
Dim czas As Long
End Sub
Sub Globals
Private gmap As GoogleMap
Private MapFragment1 As MapFragment
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("2")
If MapFragment1.IsGooglePlayServicesAvailable = False Then
ToastMessageShow("Please install Google Play Services.", True)
End If
End Sub
Sub MapFragment1_Ready
gmap = MapFragment1.GetMap
czas_old = DateTime.Now
For i=0 To 10000
gmap.AddMarker(Rnd(30,45),Rnd(30,45),("marker"&i))
Next
czas=DateTime.Now-czas_old
Log (czas)
End Sub
Sub RETURN_Click
Activity.RemoveAllViews
Activity.LoadLayout("2")
End Sub
Sub START_Click
Activity.RemoveAllViews
Activity.LoadLayout("1")
End Sub