How to set WebView as non-fullscreen?

后端 未结 4 2134
野的像风
野的像风 2021-01-05 09:34

I am trying to use a WebView in my Android application. I am creating my webview in code-side (not in XML). My problem is; when I call loadUrl method of webview, the webview

4条回答
  •  暖寄归人
    2021-01-05 10:20

    Quite possibly what you are seeing is not your activity, but the Browser application, because the URL you linked to did a redirect. Use WebViewClient and shouldOverrideUrlLoading() to catch the redirect and send it back to your own WebView.

提交回复
热议问题