I have three Activity classes,
1.MainActivity
2.firstActivity
3.SecondActivity
In Activity classes interactions are MainActivity->FirstActivity->SecondActivity
I want to retrive the name of the calling activity for knowing activity names and activity flows and for other works.