WebView not working, launching the url externally in browser. Displaying webpage inside app
As per this answer: How to load external webpage inside WebView you need to set a WebViewClient before you call loadUrl
:
webView.setWebViewClient(new WebViewClient());
The reason you're being sent to the browser is that if no WebViewClient is set then the default action for navigations is to forward them to the browser.