Here is the way I open an address in maps using a button. Not sure about google maps though.
B4X:
Sub btnMap_Click
Dim MapIntent As Intent
Location = "geo:0,0?q= " & txtAddress.Text
MapIntent.Initialize(MapIntent.ACTION_VIEW, Location)
StartActivity(MapIntent)
End Sub
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.