David
David

Reputation: 2131

Identify activity in Android?

I want to know which activity calls current activity.I have three activity namely A,B and C. i am calling activity C from A or B. In activity C i want to know which activity calls A or B.

I used bundle to identify activity but i dont want this.. Is any other smart way to find my case?

Thanks in Advance...

Upvotes: 0

Views: 568

Answers (1)

apps
apps

Reputation: 942

getCallingActivity()

Upvotes: 2

Related Questions