Unable to login in Android Webview -
i've got webview application display new posts , pictures and... on website. i'd give user ability login schoolaccount , i'm stuck. can't seem login website... else works in webview, me one?
code:
// opslag // webview.clearhistory(); webview.clearcache(true); // webview // webview=(webview)findviewbyid(r.id.webview); progressbar = (progressbar) findviewbyid(r.id.progressbar1); websettings websettings = webview.getsettings(); webview.getsettings().setjavascriptenabled(true); webview.getsettings().setjavascriptcanopenwindowsautomatically(true); // performance webview + style // webview.getsettings().setrenderpriority(websettings.renderpriority.high); webview.getsettings().setcachemode(websettings.load_cache_else_network); webview.getsettings().setappcacheenabled(true); websettings.setdomstorageenabled(true); websettings.setusewideviewport(true); webview.setwebchromeclient(new webchromeclient()); webview.sethorizontalscrollbarenabled(false); webview.setscrollbarstyle(view.scrollbars_outside_overlay); // laden url // webview.loadurl("http://scheppersonline.be/berichten_mobiel/"); final mywebclient mywebviewclient = new mywebclient(); webview.setwebviewclient(mywebviewclient); webview.getsettings().setpluginstate(websettings.pluginstate.on); webview.getsettings().setpluginstate(websettings.pluginstate.on_demand); // hide bar when app loading // findviewbyid(r.id.toolbar).setvisibility(view.gone); // downloaden bestanden // webview.setdownloadlistener(new downloadlistener() { public void ondownloadstart(string url, string useragent, string contentdisposition, string mimetype, long contentlength) { intent intent = new intent(intent.action_view); intent.setdata(uri.parse(url)); startactivity(intent); } });
kind regards bram
Comments
Post a Comment