title: Call Main activity from a Fragment
body: <p><a href="https://i.stack.imgur.com/M2kYG.png" rel="nofollow noreferrer">fragment class</a>
  <a href="https://i.stack.imgur.com/q2jLu.png" rel="nofollow noreferrer">Home/main activity</a>
  How to limit my main activity to not go back on the last page of my Fragment once return from the last page of Fragment to Main activity like I have One Home activity and that home activity leads to 3 more activities on clicking the button and in which one activity has fragments. The last page of the fragment is leading to home activity but when I back pressed on the home activity it again leads me to the last page of a fragment from where I've come and then I press the back button again then my application shuts</p>