Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 为什么webview不支持打电话?我已加载谷歌搜索页面,并试图从该搜索结果调用,但它给出了错误_Android Studio_Url_Webview_Call_Google Search - Fatal编程技术网

Android studio 为什么webview不支持打电话?我已加载谷歌搜索页面,并试图从该搜索结果调用,但它给出了错误

Android studio 为什么webview不支持打电话?我已加载谷歌搜索页面,并试图从该搜索结果调用,但它给出了错误,android-studio,url,webview,call,google-search,Android Studio,Url,Webview,Call,Google Search,在我的应用程序中,网页加载谷歌搜索,但不允许从搜索结果中调用。这是错误的 WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_nearby_hospital_map); webView= findViewById(R.id.nea

在我的应用程序中,网页加载谷歌搜索,但不允许从搜索结果中调用。这是错误的

WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_nearby_hospital_map);
    webView= findViewById(R.id.nearbyWebView);
    this.setTitle("Nearby Hospitals");
   // String url= "http://maps.google.com/maps?q=hospital&mrt=yp&sll=lat,lon&output=kml";
    webView.setWebViewClient(new WebViewClient());
    WebSettings webSettings= webView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    webView.loadUrl("http://maps.google.com/maps?q=hospital&mrt=yp&sll=lat,lon&output=kml");
} 
我的应用程序中的webview:

单击呼叫图标后,会出现错误: