android studio webview mailto

Solutions on MaxInterview for android studio webview mailto by the best coders in the world

showing results for - "android studio webview mailto"
Fynn
24 Sep 2017
1webView.setWebViewClient(new WebViewClient() {
2            @Override
3            public boolean shouldOverrideUrlLoading(WebView view, String url) {
4                if( URLUtil.isNetworkUrl(url) ) {
5                    return false;
6                }
7
8                Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
9                startActivity( intent );
10                return true;
11            }
12        });