Back button Navigation in Android
<p>I am new to android to development. I have a problem while I press back button.</p>

<p>If I use the finish that particular view gets destroyed. Next time I press back button, the app ends.
I need controlled navigation with back button</p>

<p>for example these are my activities A,B,C,D</p>

<p>my flow should be </p>

<p>from activity A to B to C to D to A</p>

<p>and user can navigate in between D to A</p>

<p>but when the user Navigates from D to A </p>

<p>again if he presses the back button</p>

<p>it should not navigate to any other activity</p>

<p>Please help</p>
