I\'m developing an application in android, where i\'m looking for a solution.
There is an Activity(say A1) from which by clicking a button, user goes to another Activit
you can use:
public void onBackPressed()
{
//do whatever you want the 'Back' button to do
//as an example the 'Back' button is set to start a new Activity named 'NewActivity'
this.startActivity(new Intent(YourActivity.this,NewActivity.class));
return;
}
look at here: http://www.41post.com/1685/programming/android-changing-the-back-button-behaviour