title: how to pass data from activity to running service
body: <p>I want to send data to the server periodically, I'm using background <code>Service</code> for that, but I want to send when the data got updated, and updated data I'm getting in <code>Activity</code> and the <code>Service</code> is running in background.. so how can i pass data to running <code>Service</code> from <code>Activity</code>. Using <code>Intent</code> I can send data only one time while starting the <code>Service</code>.</p>
  
  <pre><code>Intent serviceIntent= new Intent(DriverActivity.this,demoService.class);
  serviceIntent.putExtra("token", token);
  startService(serviceIntent);
  </code></pre>