title: onCreateOptionMenu method is not called in fragment android
body: <p>Here, It is my java file named <code>Home1</code></p>
  
  <pre><code>public class Home1 extends SherlockFragment 
  {
  
  
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  {
      View rootView = inflater.inflate(R.layout.dashboard, container, false);
      setHasOptionsMenu(true);
      myevents = new ArrayList&lt;Myevent&gt;();
      myevents_searchable = new ArrayList&lt;Myevent&gt;();
      listview = (ListView) rootView.findViewById(R.id.events);
      Button btn=(Button)rootView.findViewById(R.id.create_new_tkt);
      btn.setVisibility(View.GONE);
      loginaync = new LoginAsync();
      loginaync.execute((Void) null);
      listview.setOnItemClickListener(listener);
  
  
      return rootView;
  
  }
  
  
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      if (loading != null)
      {
          if(loading.isShowing())
          {
              loading.dismiss();
          }
      }
  }
  
  
  
  public void onCreateOptionMenu(Menu menu, MenuInflater inflater)
  {
      super.onCreateOptionsMenu(menu, inflater);
      Log.e("hii_onoptionmenu","Test");
      inflater.inflate(R.menu.main, menu);
  
  
      MenuItem menuitem = menu.findItem(R.id.action_refresh);
      menuitem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
  
          @Override
          public boolean onMenuItemClick(MenuItem item) {
              // TODO Auto-generated method stub
              loginaync = null;
              loginaync = new LoginAsync();
              loginaync.execute((Void) null);
              return true;
          }
      });
  }
  </code></pre>
  
  <p>Here, as you can see, I have extended <code>SherlockFragment</code> and I am trying to implement menu also. But <code>onCreateOptionMenu()</code> method is not called. What is the problem over here? Why this method is not called? Please Help.</p>