How to know which is the previous Activity in Android?
<p>Suppose there are 3 activities like X,Y and Z.
X and Y have two different buttons and in both button click I start the Z activity. There is a requirement that how to check from which Activity Z get started ?</p>

<p>Any help please?
Thanks</p>
