title: website is not opening in webview
body: <p>I am trying to open a url in my webview but the problem is that the url is not loading in my webview, its showing pop-up for the selection of browser and as soon as i click on an option it opens the url in that browser. Can somebody help me to solve this, i want the url to open in the webview itself not in the browser.</p>
  
  <p>my xml for webview is :-</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/bg_new" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/upBar"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;
  
          &lt;ImageView
              android:id="@+id/header"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" /&gt;
  
          &lt;ImageView
              android:id="@+id/wbview_bckbtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src="@drawable/back_btn_chng" /&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/upBar" &gt;
  
          &lt;WebView
              android:id="@+id/linkwebview"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:padding="10dp"
              android:scrollbars="none" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and here's my code for webview :-</p>
  
  <pre><code>public class FbTwtrLink extends Activity {
  
      WebView web;
      ImageView img,bckimg,share_btn; 
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_fb_twtr_link);
  
          img = (ImageView)findViewById(R.id.header);
          bckimg = (ImageView) findViewById(R.id.wbview_bckbtn);
  
          web=(WebView)findViewById(R.id.linkwebview);
          web.getSettings().setJavaScriptEnabled(true);
  
          web.loadUrl("http://www.google.com");
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.activity_fb_twtr_link, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>and i m calling the webview like that :-</p>
  
  <pre><code>fbicon.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
  
  
                  Intent intent=new Intent(context,FbTwtrLink.class);
                  //intent.putExtra("fb_link", 1);
                  startActivity(intent);
              }
          });
  </code></pre>