android - find out which activity started my activity? -


I have to find out which activity has started my activity in Android, I think "getIntent ()" The intention of starting the activity can be obtained, but I am not able to know which activity started the meaning at the first place.

Thank you in advance for your help.

use ()

note : if calling The activity is not expecting the result (it is that startActivityForResult (int, int) form which contains a request code) is not used, the calling package will be zero

Comments