title: Android Intent Service implementing SensorEventListener
body: <p>I have a question about IntentService in Android. I define my own service as below:</p>
  
  <pre><code>public class ABC extends IntentService implements SensorEventListener {
  
    @Override
    protected void onHandleIntent(Intent intent) { }
  
    @Override
    public void onSensorChanged(SensorEvent event) { }
  }
  </code></pre>
  
  <p>Now if i start the service from other activity, <code>onHandleIntent()</code> is invoked. Documentation says it launches a worker thread to process the request. However, when <code>onSensorChanged()</code> method is invoked, which thread will be executing the code defined in <code>onSensorChanged()</code> method. Will it be the worker thread or the main application thread???</p>