Android WebView click open within WebView not a default browser

后端 未结 12 2038
迷失自我
迷失自我 2020-11-27 16:34

I did one sample application using WebView, in that web view the URL comes from web services. It\'s working fine, but if I click any link within that WebView, its automatica

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 17:20

    Use this code:

    // Force links and redirects to open in the WebView instead of in a browser
    mWebView.setWebViewClient(new WebViewClient());       
    

提交回复
热议问题