Android WebView click open within WebView not a default browser

后端 未结 12 2037
迷失自我
迷失自我 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:00

    I face same problem and i just fixed it by adding single line.

    webview.setWebViewClient(new WebViewClient());
    

    and this solved my problem.

提交回复
热议问题