title: Android Service doesnt restart by itself
body: <p>In my application I have an activity and a service (extends IntentService ). the service's onStartCommand looks like below</p>
  
  <pre><code>@Override
  public int onStartCommand(Intent intent, int flags, int startId) {
      super.onStartCommand(intent, flags, startId);
      return START_REDELIVER_INTENT;
  }
  </code></pre>
  
  <p>My onHandleIntent method:</p>
  
  <pre><code>@Override
  protected void onHandleIntent(Intent intent) {
     while(continueLoop){ //continueLoop is controlled by the Binder
            //Do stuff
     }
  }
  </code></pre>
  
  <p>I also bind to the service from activity, so I can break the infinite loop. I started the app and it's service, and then started other applications, after a while my Activity got stopped and destroyed, so is my Service. When I close the other applications using task manager , the service doesn't start by itself. </p>
  
  <p>I waited and then launched my app, as soon as activity is launched service also started. I thought the android system will restart the service automatically when memory is available. Am I missing something or should i wait longer.</p>
  
  <p>Thanks in advance</p>