HTML page is not displayed in the WebView!

Amalkotey

Active Member
Licensed User
Longtime User
Hello,

I myself my copyright notice in a WebView view, so that I reach a link after my Internetpräzenz. I would like to download the HTML text in my program with the following copy

B4X:
Dim pnlCopyright As Panel
Dim pnlclose As Panel
Dim wvCopyright As WebView
Dim bmpBackground As Bitmap   

pnlCopyright.Initialize("")
wvCopyright.Initialize("")
pnlclose.Initialize("")

bmpBackground.Initialize(File.DirAssets, "bgclose.png")
pnlclose.SetBackgroundImage(bmpBackground)

Activity.LoadLayout("copyright")

o.Target = wvCopyright
o.RunMethod2("clearCache", "False", "java.lang.boolean")

wvCopyright.LoadHtml("file:///android_asset/copyright.htm")

The HTML is read and shown with either LoardHTML or LoadUrl. What am I doing wrong? Thank you for your help in advance.
 

Amalkotey

Active Member
Licensed User
Longtime User
@all:

Thanks for the help. Both variants, LordHtml and LoadUrl, have not worked. I uninstalled now the Kaspersky Mobile, and behold, the Web page is displayed.
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
I bet Kaspersky has a firewall 'feature' that was blocking your WebView from access to the internet.

I have Avast Mobile Security on my mobile and that has a user configurable firewall - not that i have it enabled.

Martin.
 
Upvote 0

Gaver Powers

Member
Licensed User
Longtime User
During the development process - what directory is functioning as the
android_asset directory?

Is that an alias for the files directory?

G
 
Upvote 0
Top