spring mvc にチャット Web アプリケーションがあります。ウェブソケットを使用しているチャットページにアクセスするために、Android WebView を使用しました。Android WebView でページを表示できますが、入力して [送信] をクリックしても応答しません。このページは、jetty を使用してブラウザーにデプロイすると正常に動作します。
webview= (WebView)findViewById(R.id.webscreen);
webview.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webview.getSettings().setSupportMultipleWindows(false);
webview.getSettings().setSupportZoom(false);
webview.setVerticalScrollBarEnabled(true);
webview.setHorizontalScrollBarEnabled(false);
webview.setClickable(true);
webview.setLongClickable(true);
webview.setBackgroundColor(0);
webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webview.getSettings().setLightTouchEnabled(true);
webview.loadUrl("http://10.0.2.2:8080/mychat/chatwindow");
webview.setWebViewClient(new DroidWebViewClient());