title: Current activity not closing (finish) on Button click
body: <p>Hi I'm calling an activity with ImageButton click but it would not finish the current activity. </p>
  
  <pre><code>btn_home.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View view) {
  
                  Intent i = new Intent(getApplicationContext(), GridActivity.class);
                  i.putExtra("feed", _rssFeed);
                  startActivity(i);
  
                  SwipeDetailView.this.finish();
              }
          }); 
  </code></pre>
  
  <p>However, if I click the home button on the Actionbar menu within the same class, it closes fine.</p>
  
  <pre><code>public boolean onOptionsItemSelected(MenuItem item) {
      switch (item.getItemId()) {
  
      case android.R.id.home:
  
          finish();
          return true;
      }
      return super.onOptionsItemSelected(item);
  }
  </code></pre>