Hello. In general, there are 3 Activities: A, B, C and the order of their call: A-> B-> C. So, when you go back from activity C, you need to get right into activity A.
UPD Activity B should not go to BackStack
toolbar.setNavigationOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ Intent intent = new Intent(C.this, A.class); startActivity(intent); finish(); } }); Source: https://ru.stackoverflow.com/questions/516022/
All Articles