Code:
Sub Globals Private MainWebView As WebView Private WVE As WebViewExtras Private DWVC As DefaultWebViewClient End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("layout") DWVC.Initialize("WebViewClient") WVE.Initialize(MainWebView) WVE.SetWebViewClient(DWVC) WVE.LoadUrl("<your link>")
End Sub
Sub WebViewClient_ReceivedError(ErrorCode As Int, Description As String, FailingUrl As String ) WVE.LoadHtml(CustomWebviewError.GetErrorPageHtml(Description))/span> End Sub
Комментариев нет:
Отправить комментарий