Hello everybody,
I have a problem with Google maps, it displays the controls with blank background like this
I followed the instructions in this thread:
https://www.b4x.com/android/forum/threads/google-maps.63930/
I made an API key with the app package name, SHA-1 code
then add it to the manifest
this is the code
I also tried the example and got the same output.
can you help me please?
I have a problem with Google maps, it displays the controls with blank background like this
I followed the instructions in this thread:
https://www.b4x.com/android/forum/threads/google-maps.63930/
I made an API key with the app package name, SHA-1 code
then add it to the manifest
this is the code
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private rp As RuntimePermissions
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.
Private gmap As GoogleMap
Private MapFragment1 As MapFragment
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("mapview")
Wait For MapFragment1_Ready
gmap = MapFragment1.GetMap
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
gmap.MyLocationEnabled = True
Else
Log("No permission!")
End If
End Sub
I also tried the example and got the same output.
can you help me please?