Android Question Load resources on webview

hibrid0

Active Member
Licensed User
Hi I want to know how can I load resources on webview.

I try to use Three.js to show a 3D object.
If I upload to my server an load with webiview.loadurl, work fine then the webview support webgl.
But if I try to load from local, not work.
The js files work fine if I embeded on the html, but the model json cant.

The json model and the texture not load the files.

I use jist the standard webview with js enabled.

This a similar model I try to load.
http://vectorslave.com/terrax/
 

Erel

Administrator
Staff member
Licensed User
Copy the files to File.DirInternal and load it from there with:
B4X:
WebView.LoadUrl("file://" & File.Combine(File.DirInternal, "index.html"))
 
Top