Description:
I have an activity (Activity A) with a button that changes to another activity (Activity B) which has another 3 buttons. Button A goes to Fragment A, Button B goes to Fragment B and Button C goes to Fragment C. I am overriding onBackPressed method:
Question:
How can I manage onBackPressed method in order you can´t go back to Activity A (which is a login activity) but can go back, for example, from fragment C to B?
Edit:
I am using the following script to go back between fragments:
getActivity().onBackPressed();