title: Service: onTaskRemoved not called if started with bindService
body: <p>I have a Service in which the <code>onTaskRemoved()</code> method has been implemented.<br>
  When the service is started with <code>startService()</code> the function <code>onTaskRemoved()</code> is called when the app is removed from the recent-apps-list by swipe. </p>
  
  <p>But if the service is started with <code>bindService()</code>, then <code>onTaskRemoved()</code> never called.</p>
  
  <p>How can I make the Service call <code>onTaskRemoved()</code> when app removed from recent-apps-list by swipe after it has been started with <code>bindService()</code>?</p>
  
  <p>Android calls the following lifecycle methods if started with:</p>
  
  <pre><code>1. bindService():
  Activity﹕ onCreate()
  CustomService﹕ onCreate()
  CustomService﹕ onStart()
  CustomService﹕ onStartCommand()
  CustomService﹕ onBind()
  // Here we swipe to remove app from recent-apps-list
  CustomService﹕ onTrimMemory()
  
  2. startService():
  ActivityA﹕ onCreate()
  CustomService﹕ onCreate()
  CustomService﹕ onStart()
  CustomService﹕ onStartCommand()
  CustomService﹕ onBind()
  // Swipe to remove app from recent-apps-list
  CustomService﹕ onTrimMemory()
  CustomService﹕ onTaskRemoved() // &lt;===== 
  CustomService﹕ onUnbind()
  </code></pre>