title: Cant open URL's inside Webview
body: <p>I am trying to open a URL when the user clicks on a button inside a WebView on my second Activity.
  But it doesn't open inside the WebView component.
  its just pop-ups the default browser (in my case Firefox) and loads the URL inside of it.</p>
  
  <p>my code is as follow</p>
  
  <p>On the Main activity;</p>
  
  <pre><code>    private void mahButton_1() {
      Button mymessbutton = (Button) findViewById(R.id.myOwnButton);
  
  
      mymessbutton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View WebViewAct) {      
              Intent myIntent = new Intent(MainActivity.this, WebViewAct.class);
              MainActivity.this.startActivity(myIntent);
          }
      });
  }
  </code></pre>
  
  <p>on the other activity;</p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_web_view);
      WebView mYWeb = (WebView) findViewById(R.id.webView1);
      mYWeb.loadUrl("http://google.com/m");
  }
  </code></pre>
  
  <p>and in the manifest i did put the following line..</p>
  
  <pre><code>&lt;uses-permission 
      android:name="android.permission.INTERNET"/&gt;
  </code></pre>
  
  <p>i really thould that this would do the job;</p>
  
  <pre><code>WebView mYWeb = (WebView) findViewById(R.id.webView1);
  mYWeb.loadUrl("http://google.com/m");
  </code></pre>
  
  <p>Any help?</p>