I have an activity (Activity_A) that has a handler and is receiving messages from an external library. The problem is that Activity_A launches activity Activity_B. When Activity_B is launched, Activity_A receives a message on the handler that I want to "send" to Activity_B.
How to do that?
I cannot move the handler from Activity_A to Activity_B as some of the messages that receives have to be managed by Activity_A.
I would like to avoid using global/static variables.
Is it possible to somehow save in Activity_A a reference to Activity_B when I create the intent? How to send a message from Activity_A to Activity_B ? 
An important point here is that, yes, I want to pass an object from one activity to another, but not in the moment I create the new activity (passing the object in a bundle). I want to do it asynchronously, whenever I receive a message from an external library.
 
     
    