title: Communication between Service and Activity
body: <p>I have a service and an <code>Activity</code> (both running as a part of the same process).
  As per the SO answer, <a href="https://stackoverflow.com/a/29101448/1215996">https://stackoverflow.com/a/29101448/1215996</a>. It is suggesting to pass an <code>Activity</code> reference to the <code>Service</code> so the service can call the callbacks on the <code>Activity</code> object.</p>
  
  <p>1) Is it a good idea to communicate this way. Won't it be bad, since it is leaking a reference to the Activity which will avoid GC until <code>Service</code> holds its reference.</p>
  
  <p>2) I have also checked that <code>Messenger</code> can be used for to and fro communication b/w Activity and Service. AFAIK, this is meant to be used if <code>Activity</code> and <code>Service</code> runs in different processes. Using this mechanism won't be an overhead for communication b/w Activity and Service when they run as part of the same process?</p>
  
  <p>What is the best way to communicate? My main aim is to provide some message from the Service to the Activity when some event occurs in the service.</p>