title: Best practice for pass info from Service to Activity (or Fragment)
body: <p>I am running a <code>Socket.IO</code> client on my <code>Android</code> app and I am having trouble passing data from the <code>Service</code> (that handles the connection of the socket) to one of the <code>Fragments</code>.</p>
  
  <p>In one of my <code>Activities</code>, I open up a fragment that has a profile page. When the profile fragment opens, I emit an event to the server asking for the profile information. </p>
  
  <p>I am getting the information back from the server with no problems, but I am having trouble sending that data (a JSON string) to the current fragment.</p>
  
  <p>What would be the best practice to pass this information from the <code>Service</code> to the <code>Fragment</code> (or the <code>Activity</code>)?</p>
  
  <p>Thank you!</p>