I have 2 Activities that need to communicate with each other: ActivityA and ActivityB
Say that ActivityA opens ActivityB. How do I unicast a message from ActivityB to ActivityA without closing ActivityB?
Here's what I tried:
setResult() - but the intent will be delivered only when ActivityB closes
sendBroadcast() - but this sends the intent to everyone listening to the action. I only want the action to reach
ActivityAsince it spawnedActivityB. I tried having ActivityA registering a BroadCast receiver, but I cannot target that via Intent'sSetComponentName().startActivity() - this brings up ActivityA, which I don't want