I am using WebView to open a webpage in an Android app. I described the layout as:
<?xml version="1.0" encoding="utf-8"?>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
Added the permission in Android Manifest file as:
<uses-permission android:name="android.permission.INTERNET" />
And used WebView in my activity class as:
WebView theWebPage = new WebView(this);
setContentView(theWebPage);
theWebPage.loadUrl("http://www.google.com");
Having done that, I ran the app on a couple Android phones. After opening, the app asks for which application(Out of Chrome, Mozilla or any other browser installed on the phone) to use to open the webpage i.e "http://www.google.com".
I want the app to open the webpage inside it itself. Help?