Android Question WebSettings and setAllowUniversalAccessFromFileURLs function

Roberto P.

Well-Known Member
Licensed User
Longtime User

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi Erel,
but from an error class not found !?
Can you give me some help?

Thanks you
 

Attachments

  • errore.png
    errore.png
    244.1 KB · Views: 302
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is better to post the text instead of a screenshot (right click to copy it).

Use this code instead:
B4X:
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")
 
Upvote 0
Top