Error in onCreateOptionsMenu at detail activity
<p>I have a listview and call detail activity when the item is selected.
My onCreateOptionsMenu has error on displaying the menu at Action Bar.</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu) {
     new MenuInflater(getActivity()).inflate(R.menu.detail_view_menu, menu);
     return (super.onCreateOptionsMenu(menu));
 }
</code></pre>

<p>The error is The method onCreateOptionsMenu(Menu, MenuInflater) in the type Fragment is not applicable for the arguments (Menu). Error happened at return line.
I implement listview and detail activity using fragmentTransaction.
Thanks</p>
