Android Question Google Maps with RuntimePermissions

ricardotm1968

Member
Licensed User
Longtime User
Hi Erel.

I want to tell you congratulations for all your tools, i'm using B4j and is very usefull, but i need to return to develop in B4a, i installed again B4a and try to use Googlemaps, i follow all the steps but when i try to use google maps with RuntimePermissions it dont work.
I needed the ACCESS_FINE_LOCATION, so i edit the manifiest. But the question is why can't run both libraries togeter ?
 

Attachments

  • googlemaps.zip
    9.9 KB · Views: 118

DonManfred

Expert
Licensed User
Longtime User
What is the problem? Do you get any error?
B4X:
Sub MapFragment1_Ready
    gmap = MapFragment1.GetMap
    
    Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    gmap.MyLocationEnabled = Result
    Dim m1 As Marker = gmap.AddMarker(10, 30, "test")
    m1.Snippet = "This is the snippet"
End Sub
 
Upvote 0

ricardotm1968

Member
Licensed User
Longtime User
Yes, when i compile with the library "RuntimePermissions " send me the following error.

upload_2019-6-30_19-28-2.png
 

Attachments

  • upload_2019-6-30_19-27-33.png
    upload_2019-6-30_19-27-33.png
    53.1 KB · Views: 115
Upvote 0

ricardotm1968

Member
Licensed User
Longtime User
thanks for your reply, so i need to reinstall SDK without androix, i suppose this this library is not compatible, in fact i try to use appcompact and the result is the same ( the same error).
The question is, what you recomend, wait or reinstall?
 
Upvote 0
Top