Android Question Google Map Intent Error returning to application

mddmx

Member
Licensed User
Longtime User
Problem has been solved, as you likely knew ... the problem was not with this block of code, but another event that was unexpectedly firing.

Any ideas on why I get an error? It correctly performs and brings up the correct location on google maps. If I then click the BACK button, I receive an error:

"An error has occurred in sub: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

Dim Address as String
Address = "100 Main St,Dallas,TX"
Dim MapIntent As Intent
Address = "geo:0,0?q=" & Address
MapIntent.Initialize(MapIntent.ACTION_VIEW, Address)
MapIntent.SetComponent("googlemaps")
StartActivity(MapIntent)
 
Last edited:
Top