title: Android Menu not showing up
body: <p>Im trying to get a custom menu to show when the menu button is clicked on my phone. Its not showing at all.</p>
  
  <p>I have a register icon caled register.png in this folder /res/drawable.
  I have my   my_menu.xml in a folder called /res/menu.
  Did I lay out my folders wrong or is there something wrong in my code below.</p>
  
  <p>I renamed menu.xml to my_menu.xml
  I changed my code and now im getting these errors:</p>
  
  <p>[2012-04-07 07:50:43 - HelloWebView] W/ResourceType( 1560): Bad XML block: no root element node found
  [2012-04-07 07:50:43 - HelloWebView] C:\Users\josh\workspace\HelloWebView\res\menu\my_menu.xml:4: error: No resource identifier found for attribute 'showAsAction' in package 'android'</p>
  
  <p>my_menu.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;    
      &lt;item android:id="@+id/register"          
          android:icon="@drawable/register"          
          android:title="@string/register"          
          android:showAsAction="ifRoom"/&gt;    
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>Mainapp</p>
  
  <pre><code>public class HelloWebViewActivity extends Activity {
      WebView mWebView;
  
      /** Called when the activity is first created. */
  
      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");
          mWebView.setWebViewClient(new HelloWebViewClient());
      }
  
      private class HelloWebViewClient extends WebViewClient {   
          @Override    
          public boolean shouldOverrideUrlLoading(WebView view, String url) {        
              view.loadUrl(url);        
              return true;    
          }}
  
      @Override  
      public boolean onKeyDown(int keyCode, KeyEvent event) {    
          if ((keyCode == KeyEvent.KEYCODE_BACK) &amp;&amp; mWebView.canGoBack()) {        
              mWebView.goBack();       
              return true;    
          }    
          return super.onKeyDown(keyCode, event);}
  
      @Override
      public boolean onCreateOptionsMenu(Menu my_menu) {    
      MenuInflater inflater = getMenuInflater();    
      inflater.inflate(R.menu.menu, my_menu);    
  
      return true;
      }
  }
  </code></pre>