Sub WebView1_PageFinished (Url As String)
If Url = "file:///" Then
WebView1.LoadUrl("http://maps.google.com/")
End If
End Sub
WebView1.LoadHtml("<html><body>Loading Page</body></html>")
As standard there only 2 versions of progress in B4A, the spinning wheel (indeterminate) and horizontal which it is up to you to increment. Android does have a horizontal indeterminate version ' Widget.ProgressBar.Horizontal' you should be able to use the Reflector library to implement this (if only I knew how?)
Sub setIndeterminate(pb as ProgressBar)
Dim r As Reflector
r.Target = pb
r.RunMethod2("setIndeterminate",true, "java.lang.boolean")
End Sub
Try this untested code:
B4X:Sub setIndeterminate(pb as ProgressBar) Dim r As Reflector r.Target = pb r.RunMethod2("setIndeterminate",true, "java.lang.boolean") End Sub
dim o4 As Reflector
o4.Target = webview1
o4.RunMethod2("recycle","True","java.lang.boolean" )
Where did you see a reference to this recycle method?
Why are you calling ExitApplication? It should normally not be used.
MyWebViewExtras.clearCache(MyWebView, ??)
IncludeDiskFiles - If false, only the RAM cache is cleared.