In my xml file I'm having text and below that text,I have placed a webview. I am trying to open google's home page in Webview. Instead of opening in webview,webpage is opening on browser.What I want is web page should load in webview which is below some text.Below is my code:
           <TextView
                  android:id="@+id/txt"
                  android:text="Hello Android"
                  android:textSize="30sp"
                  android:textStyle="bold"
                  android:textColor="#003399"
                  android:layout_height="wrap_content"
                  android:layout_width="wrap_content"
                  android:layout_centerHorizontal="true"
                  />
      <WebView 
                 android:id="@+id/webview"
                 android:layout_marginTop="50dp"
                 android:layout_below="@id/txt"
                 android:layout_height="fill_parent"
                 android:layout_width="fill_parent"/>
Kindly help to solve this.Thank you
 
     
     
    