title: Using a broadcast intent/broadcast receiver to send messages from a service to an activity
body: <p>So I understand (I think) about broadcast intents and receiving messages to them.</p>
  
  <p>So now, my problem/what I can't work out is how to send a message from the <code>onReceive</code> method of a receiver to an activity. Lets say I have a receiver as such:</p>
  
  <pre><code>public class ReceiveMessages extends BroadcastReceiver 
  {
  @Override
     public void onReceive(Context context, Intent intent) 
     {    
         String action = intent.getAction();
         if(action.equalsIgnoreCase(TheService.DOWNLOADED)){    
             // send message to activity
         }
     }
  }
  </code></pre>
  
  <p>How would I send a message to an activity?</p>
  
  <p>Would I have to instantiate the receiver in the activity I want to send messages to and monitor it somehow? Or what? I understand the concept, but not really the application.</p>
  
  <p>Any help would be absolutely amazing, thank you.</p>
  
  <p>Tom</p>