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 override the Back Button key press like so:
@Override
public boolean onKeyUp(int keyCode, KeyEvent msg) {
switch(keyCode) {
case(KeyEvent.KEYCODE_BACK):
Intent a1_intent = new Intent(this, A1Activity.class);
startActivity(a1_intent);
finish();
return true;
}
return false;
}
Take a look at this