title: How to build a webview based application Android
body: <p>I want to build a native webApplication with Android, when i run the code, my default avd tell me that my application crash...</p>
  
  <p>I follow this tutorial on the Google Android documentation : <a href="http://developer.android.com/guide/webapps/webview.html" rel="nofollow">http://developer.android.com/guide/webapps/webview.html</a>
  here is my java android code :</p>
  
  <pre><code>package com.example.mobilewebview;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.webkit.WebView;
  //import android.webkit.WebSettings;
  
  public class MainActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          WebView myWebView = (WebView) findViewById(R.id.webview);
          myWebView.loadUrl("http://www.google.com");
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_main, menu);
          return true;
      }
  }
  </code></pre>
  
  <p>Thanks !</p>