iOS Question B4A to B4I simple code conversion

francesco paolo lavecchia

Member
Licensed User
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:
Top