multiple transition animations for an activity
<p>I have 3 activities -
Activity A, Activity B and Activity C. the transitions are as follows</p>

<p>A->B and B->A , A->C and C->A</p>

<p>now, when I am returning to A, I need different animation for the transition, depending on whether I am coming from B or C.</p>

<p>Activity A is the home page of the app, so I am going from A->B or A->C using Textviews but from both of them, I am returning to A using the hardware back button.</p>

<p>So, my question is how can I detect in A, whether I am returning from A or B and apply the transition animation accordingly? </p>
