title: how to use onMenuItemSelected
body: <p>i am using onCreateOptionsItem as shown below in the code, but when i overide onMenuItemSelected, it is marked with red. is there an alternative to it?how
  can i fix this errors</p>
  
  <p><strong>code</strong>:</p>
  
  <pre><code>import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.MenuItem;
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
  
      MenuItem miRefrsh = menu.add(0, 1, 0,"refresh");
      miRefrsh.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
      //进入关于页面
      MenuItem miScan = menu.add(0, 2, 1, "scan");
      miScan.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
      //退出系统
      MenuItem miCancel = menu.add(0, 3, 2, "cancel");
      miCancel.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
  
      MenuItem miExit = menu.add(0, 4, 2, "exit");
      miExit.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
  
      return super.onCreateOptionsMenu(menu);
  
  }
  
  public boolean onMenuItemSelected(int featureId, MenuItem item) {
      switch(item.getItemId()) {
          case MEMU_RESCAN: 
              this.mGP.closeConn();
              this.initActivityView(); 
              this.openDiscovery(); 
              return true;
          case MEMU_EXIT: 
              this.finish();
              return true;
          case MEMU_ABOUT: 
              this.openAbout();
              return true;
          default:
              return super.onMenuItemSelected(featureId, item);
      }
  </code></pre>