android中webview调用拨号盘

wv.setWebViewClient(new WebViewClient(){  
            public boolean shouldOverrideUrlLoading(WebView view,String url){  
                //当有新连接时,使用当前的 WebView  
                view.loadUrl(url);
                //调用拨号程序
                if (url.startsWith("mailto:") || url.startsWith("geo:") ||url.startsWith("tel:")) {
                  Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
                   startActivity(intent);
                  }
                return true;  

posted @ 2014-04-11 16:39  小鞋童  阅读(455)  评论(0编辑  收藏  举报