Android Question webview extra help

Mas Afi

Member
Licensed User
how to implement setAllowUniversalAccessFromFileURLs in webview extra.

Dim jo As JavaObject = WebView1
Dim settings As JavaObject = jo.RunMethod("getSettings", Null)
Dim r As Reflector
r.Target = settings
r.RunMethod2("setAllowUniversalAccessFromFileURLs", True, "java.lang.boolean")
 

DonManfred

Expert
Licensed User
Longtime User
1. Please use [CODE]code here...[/CODE] tags when posting code.

codetag001.png

codetag002.png

codetag003.png


2. You can not add it to webviewextras; the library author needs to implement it.
Just use the it in your code if you need it.
 
Upvote 0
Top