Is there a way for an Activity to find out who (i.e. class name) has sent an Intent? I’m looking for a generic way for my Activity to respond to a received intent by sending one back to the sender, whoever that may be.
Is there a way for an Activity to find out who (i.e. class name)
Share
There may be another way, but the only solution I know of is having Activity A invoke Activity B via
startActivityForResult(). Then Activity B can usegetCallingActivity()to retrieve Activity A’s identity.