Google Maps Intent Problem

Malky

Active Member
Licensed User
Longtime User
I select a place and feed the coordinates in, then start Google maps.

The map displays ok and I hit the back button to get back to the app.

In the app, I select different coordinates and call the same intent for Google maps, but I still get the previous map displayed?

I have a log statement that tells me the coordinates have changed, but the map doesn't seem to change?

B4X:
Sub GetOnlineMap
   Dim MapIntent As Intent
   Dim MyPosition As GeoPoint
   Dim strBeforeSplit As String 
   strBeforeSplit=ContactMAP
   Log (ContactMAP)
   Dim strSplit() As String
   strSplit=Regex.Split(",",strBeforeSplit)
   Location = "geo:?q=" & strSplit(0) & "," & strSplit(1) & ""
   Log("location " & location)
   GMapRunning = True
   MapIntent.Initialize(MapIntent.ACTION_VIEW, Location)
    StartActivity(MapIntent)

End Sub

Any ideas?

Malky
 

Malky

Active Member
Licensed User
Longtime User
Found the problem at last!

Please ignore this thread. (and my ignorance/stupidity).

Malky
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…