Android Question Google Maps with RuntimePermissions

Discussion in 'Android Questions' started by ricardotm1968, Jun 30, 2019.

  1. ricardotm1968

    ricardotm1968 Member Licensed 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 ?
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    What is the problem? Do you get any error?
    Code:
    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(1030"test")
        m1.Snippet = 
    "This is the snippet"
    End Sub
     
    MarcoRome likes this.
  3. ricardotm1968

    ricardotm1968 Member Licensed User

    Yes, when i compile with the library "RuntimePermissions " send me the following error.

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

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    It is better to post the message as text instead of screenshot.

    You have probably downloaded androidx libraries. You have two options:
    1. Download the ready to run SDK: https://www.b4x.com/b4a.html#installation
    2. Wait for B4A v9.30 beta to be released. It will happen soon...
     
  5. ricardotm1968

    ricardotm1968 Member Licensed 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?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Download the beta version. It supports AndroidX.
     
  7. ricardotm1968

    ricardotm1968 Member Licensed User

    ok, i will thanks.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice