I am having two activities A and B. when i click the button in A that will shows B. when i click the Button in B it backs to A. i had set the overridePendingTransition metho
For Android 2.0 and later, there is a specific method in the Activity class:
@Override public void onBackPressed() { super.onBackPressed(); // Do extra stuff here }