"hello, Webview" Tutorial Opens The Requested Address In Android Browser And Not In My Webview
I am using Android emulator with AVD of Android 2.1 and I have the following problem: Trying to load a URL in a WebView using webView.loadUrl causes it to open in the browser inste
Solution 1:
The URL you are trying to visit probably has a redirect. Redirects behave like link clicks and will by default open in the Browser. Make sure the URL you are visiting does not do a redirect (e.g., HTTP 301 response), or use WebViewClient
and shouldOverrideUrlLoading()
to catch these and re-route them back to the WebView.
Post a Comment for ""hello, Webview" Tutorial Opens The Requested Address In Android Browser And Not In My Webview"