title: What does onPrepareOptionsMenu do?
body: <p>I want to make <code>Option Menu</code> for Android, I have visit this site. In their script, I found <code>onPrepareOptionsMenu</code>, I try to compile and run using Android 2.3.3 compiler with and without <code>onPrepareOptionsMenu</code>, both works, but I didn't see any difference.</p>
  <pre class="lang-java prettyprint-override"><code>public boolean onCreateOptionsMenu(Menu menu){
      //code here
  }
      
  public boolean onOptionsItemSelected(MenuItem item){
      //code here
  }
      
  public boolean onPrepareOptionsMenu(Menu menu){
      //code here
  }
  </code></pre>
  <p>What is actually <code>onPrepareOptionsMenu</code> method do? Is that method important? Could I just delete the method?</p>
  <hr />
  <p>Addition</p>
  <p>Oh, I also hear about <code>Action Bar</code> in Android 3.0, it says that Action Bar is the alternative way for make <code>Option Menu</code>, and it using <code>onPrepareOptionsMenu</code>. Is that right?</p>
  <p>Thank you...</p>