LimeJS でゲームを作成しました。このゲームの Android アプリケーションを作成したいと考えています。Android ブラウザでゲームをテストしたところ、問題なく動作しましたが、アプリ内で WebView でゲームを使用すると、動作しませんでした。Webビューは、ライムのないページでうまく機能するように見えます
WebView のコードは次のとおりです。
//WebView
mWebView = (WebView) findViewById(R.id.webView);
mWebView.setVerticalScrollbarOverlay(true);
//Settings to configure the webViewBrowser to show Flash and respond to links
WebSettings webSettings = mWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccess(true);
webSettings.setPluginsEnabled(true);
//I changed the url to a LimeJS example
mWebView.loadUrl("http://www.limejs.com/static/roundball/index.html");
しばらくテストした後、Sniffer を使用したところ、Android アプリケーションがサーバーにリソースを要求しているのではなく、Android ブラウザーが呼び出しを行っていることがわかりました。
誰かが WebView を構成して動作させる方法を知っていますか?