Loibl Johann Member Licensed User Jan 24, 2018 #1 I have a link from Google maps on a Webview. I would like to click this link in my Webview with Google navi App Eurojam has already helped me there. It starts the Navi app but after exiting the Navipp loads the Webview Web googlemaps. how can I prevent that If I call the same link in the browser, the NaviApp starts without problems Code: Sub WebView1_OverrideUrl (Url As String) As Boolean If Url.Contains("maps.google.at") Then Dim Intent1 As Intent Dim Uri As String Uri=Url Intent1.Initialize(Intent1.ACTION_VIEW, Uri) StartActivity(Intent1) End If End Sub
I have a link from Google maps on a Webview. I would like to click this link in my Webview with Google navi App Eurojam has already helped me there. It starts the Navi app but after exiting the Navipp loads the Webview Web googlemaps. how can I prevent that If I call the same link in the browser, the NaviApp starts without problems Code: Sub WebView1_OverrideUrl (Url As String) As Boolean If Url.Contains("maps.google.at") Then Dim Intent1 As Intent Dim Uri As String Uri=Url Intent1.Initialize(Intent1.ACTION_VIEW, Uri) StartActivity(Intent1) End If End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2018 #2 Code: If Url.Contains(...) Then ... StartActivity(...) Return True 'override the default navigation End If Return False Upvote 0
Code: If Url.Contains(...) Then ... StartActivity(...) Return True 'override the default navigation End If Return False