imbault Well-Known Member Licensed User Longtime User Feb 4, 2017 #1 Hi, How to launch an Intent letting the user to choose among the navigation apps installed on his smartphone (gMaps, Here, Waze ....) Here is my code, but it launch only gmaps B4X: Dim mapIntent As Intent Dim geouri As String geouri = "geo:?q=" & Dest.Latitude & ", " & Dest.Longitude mapIntent.Initialize(mapIntent.ACTION_VIEW,geouri) mapIntent.SetComponent("googlemaps") StartActivity(mapIntent)
Hi, How to launch an Intent letting the user to choose among the navigation apps installed on his smartphone (gMaps, Here, Waze ....) Here is my code, but it launch only gmaps B4X: Dim mapIntent As Intent Dim geouri As String geouri = "geo:?q=" & Dest.Latitude & ", " & Dest.Longitude mapIntent.Initialize(mapIntent.ACTION_VIEW,geouri) mapIntent.SetComponent("googlemaps") StartActivity(mapIntent)
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2017 #2 1. What happens if you remove the SetComponent line? 2. Also try it with: B4X: mapIntent.WrapAsIntentChooser("Choose app") StartActivity(mapIntent) Upvote 0
1. What happens if you remove the SetComponent line? 2. Also try it with: B4X: mapIntent.WrapAsIntentChooser("Choose app") StartActivity(mapIntent)
imbault Well-Known Member Licensed User Longtime User Feb 5, 2017 #3 Thanks Erel, it works like a charm Upvote 0