title: How to create a simple android browser?
body: <p>I simply want to create an apk that will take a url, and open a window and simply run like a browser</p>
  
  <p>so far I have:</p>
  
  <pre><code>public class Browser extends Activity {
  
      WebView mWebView;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          mWebView = (WebView) findViewById(R.id.webview);
          mWebView.getSettings().setJavaScriptEnabled(true);
          mWebView.loadUrl("http://www.google.com");  
      } 
  }
  </code></pre>
  
  <p>This works fine, except when i open a link it'll take me to the actual browser, I'm having trouble where to place this code to override links opening in a new browser:</p>
  
  <pre><code>private class HelloWebViewClient extends WebViewClient {
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
          view.loadUrl(url);
          return true;
      }
  }
  </code></pre>