title: how to return to previous activity from about with a button click?
body: <p>Im trying to return from the about dialog to the main activity by a button click:</p>
  
  <pre><code>public class AboutActivity extends Activity implements OnClickListener{
  @Override
  protected void onCreate(Bundle savedInstanceState){
      super.onCreate(savedInstanceState);
      setContentView(R.layout.about);
  }
  
  @Override
  public void onClick(View arg0) {
      // TODO Auto-generated method stub
      SharedPreferences prefs = getSharedPreferences("com.example.tiocontas",MODE_PRIVATE);
      SharedPreferences.Editor prefsEditor = prefs.edit();
      prefsEditor.putBoolean("FirstTime", false);
      finish();
      //this.onBackPressed();
  }
  }
  </code></pre>
  
  <p>I've tried both finish() and onBackPressed() with no results, im doing something wrong could someone give me some hints?</p>