Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private Button1 As Button
Private WebView1 As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub WebView1_PageFinished (Url As String)
End Sub
Sub WebView1_OverrideUrl (Url As String) As Boolean
End Sub
Sub Button1_Click
If CanGoBack(WebView1) Then WebView1.Back 'test if webview can go back another page
End Sub
Sub CanGoBack(wv As WebView) As Boolean
Dim r As Reflector
r.Target = wv
Return r.RunMethod("canGoBack")
End Sub