I have 3 Activities A, B, and C.
A is the home activity and B is its child and C is its child.
When I go to Activity C and return to A by pressing back button it gets proper navigation. But after this, if I press back button again to exit the app, it goes back to Activity B instead of exiting the app.
I have finished the Activity B onBackpressed
override.
And I have implemented dynamic fragments on Activity B is that causes this problem.
I can't find out why this happens. Does Anyone have an answer?