Hi everyone ..
I'm trying to add a google map to my app, but the map opened empty!
images attached, from google maps apis and screenshot from the app
Thanks in advanced
I'm trying to add a google map to my app, but the map opened empty!
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("google_maps_ui")
Button1.Visible = False
Wait For MapFragment1_Ready
gmap = Mapfragment1.GetMap
Button1.Visible = True
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
gmap.MyLocationEnabled = True
Else
MsgboxAsync(Languages.getString("toast_permisstions"),"")
End If
End Sub
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
AddApplicationText(
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyAgtNpJwvh7-xnktPnvxaTcfhafxxxxxxxxx"/>
)
images attached, from google maps apis and screenshot from the app
Thanks in advanced