F francesco paolo lavecchia Member Licensed User Jun 16, 2017 #1 Hi everyone, I need to convert this code: Sub Globals Dim wv As WebView End Sub Sub Activity_Create(FirstTime As Boolean) wv.Initialize("wv") wv.LoadUrl("http://www.mysite.net/") End Sub Sub wv_OverrideUrl (Url As String) As Boolean Dim Intent1 As Intent Sub wv_OverrideUrl (Url As String) As Boolean Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_VIEW, Url) Intent1.SetComponent("android/com.android.internal.app.ResolverActivity") StartActivity(Intent1) If Url.StartsWith("https://maps.google.it/?") Then wv.Back wv.Forward Else If Url.StartsWith("https://www.google.com/maps/dir//") Then wv.Back wv.Forward wv.Forward End If End Sub thanks in advance to anyone who helps me.... Last edited: Jun 16, 2017
Hi everyone, I need to convert this code: Sub Globals Dim wv As WebView End Sub Sub Activity_Create(FirstTime As Boolean) wv.Initialize("wv") wv.LoadUrl("http://www.mysite.net/") End Sub Sub wv_OverrideUrl (Url As String) As Boolean Dim Intent1 As Intent Sub wv_OverrideUrl (Url As String) As Boolean Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_VIEW, Url) Intent1.SetComponent("android/com.android.internal.app.ResolverActivity") StartActivity(Intent1) If Url.StartsWith("https://maps.google.it/?") Then wv.Back wv.Forward Else If Url.StartsWith("https://www.google.com/maps/dir//") Then wv.Back wv.Forward wv.Forward End If End Sub thanks in advance to anyone who helps me....
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2017 #21 Why do you want to open the PDF with a different app? WebView shows PDF documents properly. Upvote 0
F francesco paolo lavecchia Member Licensed User Jul 8, 2017 #22 Because I want to use a program like this: vBookz PDF Voice Reader https://www.google.it/url?sa=t&rct=...3?mt=8&usg=AFQjCNGCdXVK_nUQmSYge9xUwTp-xOpeDA Upvote 0
Because I want to use a program like this: vBookz PDF Voice Reader https://www.google.it/url?sa=t&rct=...3?mt=8&usg=AFQjCNGCdXVK_nUQmSYge9xUwTp-xOpeDA
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2017 #23 You need to find out whether this app supports any specific schemes like Google Maps app. Upvote 0