title: One Service Multiple Activities in Android
body: <p>I have a service and 3 activities. The service is started in the first activity.
  Now when I move to the second activity and pressing on some button, I want
  to send a data to the service.</p>
  
  <p>so in the second activity, inside the click listener I did the following:</p>
  
  <pre><code> Intent service = new Intent(MyService.class.getName()); 
   service.putExtra("dataToSend",data.toString());
   startService(service);
  </code></pre>
  
  <p>but the method <strong>onStartCommand</strong> inside the service, doesn't get called..</p>
  
  <p>Also, I want to create this service to work with multiple activities.
  I mean each activity will be able to send a data to this service and get a data
  from it. </p>