Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 url 传递到我的应用程序并在 CordovaWebView 上调用 loadUrl。每当我尝试使用外部 URL 时,它都会在外部浏览器应用程序中打开链接。我需要它保留在我的应用程序中。
myCordovaWebView.loadUrl("http://google.com");
myCordovaWebView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; }}); myCordovaWebView.loadUrl("http://google.com");