Android: When onStartCommand is finished, onDestroy isn't created
===

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.

This works but i notice that my service is never stopped hence when onStartCommand finished - it never stops, the onDestroy is NEVER called.

I need to return an integer from onStartCommand which i believe controls the life time..

What integer should i return?

What am i doing wrong?

Thank in advance
