Hello,
i need to download a pdf file from the net and then show it to the usr.
I tried to use a web view, but the log result is null:
This is my code:
It could be better, if the DOWNLOAD_ADDRESS variable, would be the file into DirRootExternal
i need to download a pdf file from the net and then show it to the usr.
I tried to use a web view, but the log result is null:
This is my code:
B4X:
Dim DOWNLOAD_ADDRESS As String = "http://www.testwebsite.com/pdf-test.pdf"
Dim wb As WebView
wb.Initialize("wb")
Activity.AddView(wb, 5, 5, 50%x, 50%y)
wb.LoadUrl(DOWNLOAD_ADDRESS)
Log(wb.Url)
It could be better, if the DOWNLOAD_ADDRESS variable, would be the file into DirRootExternal