In android app, contains A B C & D four activities, we can go to D Activity in two ways through B and C. while i am in D Activity how to identify which Activity i came from B or C?
Asked
Active
Viewed 291 times
2 Answers
1
No, sorry. There is no built-in mechanism, You can set Boolean in your Intent's Extras to verify caller activity.

Mohammed Azharuddin Shaikh
- 41,633
- 14
- 96
- 115
0
try this
Intent intent = getIntent();
intent.getComponent().getClassName());
see if it helps

Mob
- 129
- 1
- 1
- 6