How do I get my android webview make a load locally

Get help using Construct 2

Post » Mon Sep 08, 2014 12:04 pm

I have a doubt. What happens is the following: I exported my game by using cocoonjs contruct 2, but I want to run it on my android webview by, because I want to implement starApp, and cocoonjs not support this. So, using my code below, I get only a blank screen. But in my launcher cocoonjs, this same project works normally, just that I select Canvas + can anyone help me?

web = (WebView) findViewById(R.id.webInicial); web.setWebChromeClient(new WebChromeClient()); web.getSettings().setJavaScriptEnabled(true); web.loadUrl("file:///android_asset/www/index.html");
B
5
S
1
Posts: 40
Reputation: 509

Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 12 guests