title: How to get OnClick on the icon/logo of an ActionBar
body: <p>How can I get on click action, when I clicked actionbar logo. I tried </p>
  
  <blockquote>
    <p>onOptionsItemSelected </p>
    
    <p>case android.R.id.home://here to get action</p>
  </blockquote>
  
  <p>and it does not work. I tried to add onClick listener on my decor view like this at onCreate</p>
  
  <pre><code>getWindow().getDecorView().setOnClickListener(this);
  getWindow().getDecorView().setOnTouchListener(this);
  getWindow().getDecorView().getRootView().setOnClickListener(this);
  getWindow().getDecorView().getRootView().setOnTouchListener(this);
  </code></pre>
  
  <p>and I implemented simple listener</p>
  
  <pre><code>@Override
  public boolean onTouch(View v, MotionEvent event) {
      // TODO Auto-generated method stub
      Toast.makeText(this, "onTouch pressed", Toast.LENGTH_LONG).show();
  
      return false;
  }
  
  @Override
  public void onClick(View v) {
      // TODO Auto-generated method stub
      Toast.makeText(this, "onClick pressed", Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>But it does not enter none of the methods. How can I get OnClick action on icon or onclick action when user clicked at Top Left corner of my decorview</p>