title: actionbar menu item onclick?
body: <p>I have an action bar that puts everything in a menu in the top right, which the user clicks and the menu options open up. </p>
  
  <p>I inflate the action bar menu with this on each activity I use it:</p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main2, menu);
  
          return true;
      }
  </code></pre>
  
  <p>And my xml for main2.xml is:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;item
          android:id="@+id/action_searchHome"
          android:orderInCategory="100"
          android:showAsAction="never"
          android:title="Seach"/&gt;
  
  
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>My question is do I put an onclick in the item in the xml and if so where do I put the onclick method it calls? Do I need to put it in every activity I launch this action bar in?</p>