android webview not functioning on a page with websockets -
i have chat web application on spring mvc. used android webview chat page, using websockets. can see page on android webview when type , click send doesn't respond. page works fine when deploy on browser using 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());
if around on web, you'll see lots of information android web browser not supporting sockets. webview
no different.
Comments
Post a Comment