android webview could not open a link fired from bootstrap pop up -


could not detect event fired bootstrap popup

there link downloading file on item click in bootstrap pop up, android webview unable detect url or click event on it.

my code :

    mwebview = (webview) findviewbyid(r.id.mwebview);     mwebview.loadurl(homepageurl);      mwebview.setwebviewclient(new mywebclient());     mwebview.getsettings().setloadsimagesautomatically(true);     mwebview.getsettings().setjavascriptenabled(true);     mwebview.getsettings().setbuiltinzoomcontrols(true);     mwebview.getsettings().setusewideviewport(true);     mwebview.getsettings().setsupportmultiplewindows(true);     mwebview.getsettings().setdomstorageenabled(true);     mwebview.getsettings().setloadwithoverviewmode(true);     mwebview.setscrollbarstyle(view.scrollbars_inside_overlay);     mwebview.getsettings().setcachemode(websettings.load_default);     mwebview.getsettings().setjavascriptcanopenwindowsautomatically(true);      //mwebview.getsettings().setpluginsenabled(true);     mwebview.getsettings().setallowfileaccess(false);     mwebview.getsettings().setpluginstate(websettings.pluginstate.on);      mwebview.addjavascriptinterface(new androidjavascriptinterface(), "android");     mwebview.setbackgroundcolor(0x00000000); // transparent     /*if (build.version.sdk_int >= 19) {         mwebview.setlayertype(view.layer_type_hardware, null);     } else {         mwebview.setlayertype(view.layer_type_software, null);     }*/      //mwebview.setwebchromeclient(new mywebchromeclient());     mwebview.setwebchromeclient(new webchromeclient() {         @override         public boolean onjsalert(webview view, string url, string message, jsresult result) {             //commonutils.getinstance().showmsg(mainactivity.this,"alert!",message);             return super.onjsalert(view, url, message, result);         }     }); 

    if (build.version.sdk_int >= build.version_codes.kitkat) {     //replace java script method "ckeditor.instances.editor.getdata()".      webview.evaluatejavascript("ckeditor.instances.editor.getdata()", new valuecallback<string>() {     @override     public void onreceivevalue(string value) {       messagedata = value;       log.e("webview ", "" + messagedata);      }     });     } 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -