I wrote:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim WebView1 As WebView
Itwould be useful if you give more information when asking for help, the error I got when I ran your code as is was: java.lang.runtimeException: Object should first be initialized (WebView). Did you forget to call Activity.LoadLayout? Continue?
If this is the same error you received, then you can either create a layout with the designer and use Activity.LoadLayout, or manually initialize WebView1 with
WebView1.Initialize("WebView1")
Before adding it to the activity.
The subs you will need to access the webview (OverrideURL and PageFinished) should then be created as Sub WebView1_OverrideURL etc.