Android Question [SOLVED] Webview, HTML5, Babylon.js and Javascript sdk CORS issue...

Discussion in 'Android Questions' started by eps, Oct 28, 2018.

  1. eps

    eps Well-Known Member Licensed User

    I've finally put together some code for a game, it all seems to work 'okay' but...

    I had the manifest set to

    <uses-sdk android:minSdkVersion="6" android:targetSdkVersion="14"/>

    This works.

    I then set the min and target SDK versions to 26 and it doesn't work... Well it does work but it can't load the files to display the graphics. User input works and it displays a primitive graphic element which is drawn using babylon.js (but that's just a tube) but this tells me that it all works, apart from the file access..

    <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="26"/>


    I start to get COR Cross Object Reference errors. Is this something I can sort 'easily'? I've uploaded the html file and javascript file - but not all the libraries and I can't upload the apk as it's too big for the forum. Happy to send an APK if that would help.

    Any thoughts? I've tried searching here and elsewhere but either I'm asking the wrong question or it's something "obvious". I mean obviously its something to do with the increased permissions but I'm not entirely sure how to resolve the permissions issue. The images were stored in subdirectories, below the Files folder but even moving them there doesn't seem to have resolved the issue.

    I'm using the Babylon.js lib to handle input and display of graphics

    'Do not forget to load the layout file created with the visual designer. For example:













    Dim jo As JavaObject = Activity

    "getContext"Null).RunMethodJO("getWindow"Null).RunMethod("setSoftInputMode", _

    Array As Object(0x20))

        ActivityParent = jo.RunMethodJO(

    Attached Files:

  2. eps

    eps Well-Known Member Licensed User

    hibrid0 and Lello1964 like this.
  3. techknight

    techknight Well-Known Member Licensed User

    Only set your target SDK to 26. Don't set your minimum to 26, or you'll kill off about 80% of the devices out there. Alot of new tablets are running 7.X and less. Still...
  4. eps

    eps Well-Known Member Licensed User

    Cheers :) ah yes 14 is probably about the minimum - sorry I manually edited that line anyway!
  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