title: Dynamically set parent activity
body: <p>So at the moment I have an activity that can be reached from two different activities, the problem is that I can only set one activity as the parent activity in the manifest XML file. Obviously this is bad UX/UI design because the activity may send the user back to the wrong activity they were at previously and so I'm trying to dynamically set which activity is the parent activity.</p>
  
  <p>The trouble is I'm not quite sure how to go about this, whether in code or XML so any pointers are appreciated. :) </p>