title: Click listener of overflow menu, android?
body: <p>What is the listener for click event of overflow icon in action bar?</p>
  
  <p>It is not detected in the onoptions selected so where else it can be detected</p>
  
  <pre><code>@Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
      Log.e("id  ", ""+id);
  
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  </code></pre>