title: Service dying, seeing "ActivityManager: Timeout executing service..." in logs. Cause?
body: <p>Under what specific circumstances does such a timeout occur? I schedule an alarm to start a service at regular intervals, so I create a PendingIntent that targets the service (by calling PendingIntent.getService(......)), and pass it to the AlarmManager setRepeating(.....) method. The alarm type is RTC_WAKEUP.</p>
  
  <p>As currently implemented the service does not spawn a separate thread to do its work, doing it all in onStart().</p>
  
  <p>The service does some DB queries, and I suspect the reason I now regularly see "Timeout executing service.." messages for the service in the logs, as my service dies, has to do with these queries taking longer as the DB increases in size.</p>
  
  <p>What <em>specifically</em>, though, causes the execution timeout. </p>
  
  <ul>
  <li>Is it doing the work on the <strong>main</strong> thread?</li>
  </ul>
  
  <p>So, spawning a separate thread from onStart() that allows onStart() to return in a timely fashion, while the DB queries etc. run on the separate thread would completely eliminate the issue? Or is there something else I'm missing?</p>