title: android service running on a separate thread
body: <p>I have an application that starts on boot using a broadcast receiver, also I have an activity and a process, because the service must run always on the background I am starting the service on it's own process using the android:process manifest tag.</p>
  
  <p>The ui is only for presentational needs and I would like the user to be able to run the service even if the activity is not active.</p>
  
  <p>I am starting the service using this extra parameter:</p>
  
  <pre><code>intent.putExtra(Intent.EXTRA_DONT_KILL_APP, true);
  </code></pre>
  
  <p>the problem is that when I press the back button or the home button the activity's on destroy method is called and the service although seems its running (it appears on the task manager) its not behaving as supposed, it should connect to the net and send some data but every X time using an timer task but the task never fires so the data are never send.</p>