Android Question Load resources on webview

Discussion in 'Android Questions' started by hibrid0, Aug 4, 2019.

  1. hibrid0

    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/
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Copy the files to File.DirInternal and load it from there with:
    Code:
    WebView.LoadUrl("file://" & File.Combine(File.DirInternal, "index.html"))
     
    hibrid0 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice