title: Android: When onStartCommand is finished, onDestroy isn't created
body: <p>Can anyone help. I have built a service that executes with the BOOT_COMPLETED intent, hence my service is started when the device is booted.
  n
  In my onStartCommand i am registering the service with the AlarmManger to execute every 15 minutes.</p>
  
  <p>This works but i notice that my service is never stopped hence when onStartCommand finished - it never stops, the onDestroy is NEVER called.</p>
  
  <p>I need to return an integer from onStartCommand which i believe controls the life time..</p>
  
  <p>What integer should i return?</p>
  
  <p>What am i doing wrong?</p>
  
  <p>Thank in advance</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Currently the serive returns super.onStartCommand(......</p>
  
  <p>which is by default. So what is being returned here?</p>
  
  <p>And if i remove it should i not call (rather than return) to super.onStartCommand on the first line on my onStartCommand in my class?</p>