Here is my code I need to go from A->B->C and onBackPressed() from B and C should go to A while pressing back it goes to B and then to C , It seems to me that transaction.addToBackStack(null); not using as neededHere is my code I need to go from A->B->C and o