title: Fragment not receiving menu callbacks
body: <p>I have a fragment class that extends <code>Fragment</code> and calls <code>setHasOptionsMenu</code> to participate in the menu. This class also implements <code>onCreateOptionsMenu</code>, <code>onPrepareOptionsMenu</code> and <code>onOptionsItemSelected</code>.</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setHasOptionsMenu(true);
          ....
  }
  </code></pre>
  
  <p>I'm dynamically loading this fragment using a <code>FragmentTransaction</code> in my Activity (that extends <code>FragmentActivity</code>).</p>
  
  <p>However none of the menu callbacks (<code>onCreateOptionsMenu</code>, <code>onPrepareOptionsMenu</code> and <code>onOptionsItemSelected</code>) are being called (I've debugged with some breakpoints in those methods) and the menu isn't shown.</p>
  
  <p>Am I missing something? Do I need to add something in my Activity? </p>
  
  <p>I'm using the Android Compatibility Library, compiling with L11 SDK and testing in a Xoom.</p>
  
  <p><strong>EDIT</strong>: I've found the problem. My AndroidManifest is targeting L11, this seems to hide the menu button and prevent from the callbacks being called. However if I remove this from the manifest I loose some other features I need (for example the activated state in lists). Does anyone know how to solve this issue (enable the menu button) without removing the <code>targetSdkVersion=11</code> from the Manifest?</p>