Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Dim site As WebView
site.Initialize("")
Activity.AddView(site, 0, 0, 100%x, 100%y)
Dim siteextras As WebViewExtras
siteextras.Initialize(site)
Dim siteclient As DefaultWebViewClient
siteclient.Initialize("siteclient")
siteextras.SetWebViewClient(siteclient)
siteextras.LoadUrl("
https://sample.com")
End Sub
Sub siteclient_OverrideUrl(Url As String) As Boolean
If (Url.EndsWith(".pdf")) Then
Dim FileDownload As HttpJob
FileDownload.JobName = "DownloadFile"
FileDownload.Download(Url)
End If
Return False
End Sub
Sub JobDone (Job As HttpJob)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
Log("Job String : " & Job.GetString) -- It is here where I get the Unauthorized Access
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub