title: Android: Use AlarmManager to repeatedly call service that sometimes lasts longer than the repeat interval
body: <p>I want to start a service every 15 minutes. Most of the time it will quit in about 30 seconds, but there will be times the service lasts longer than 15 minutes. I don't think it would be good for the alarmmanager to start the service if the previous service call is still running.  I was considering setting up a flag in onStartCommand to have it simply return without doing anything if the service is running. But I'm not sure if this is the best way to handle it, as onStartCommand returns an int and I don't know what the system needs for this value. Is there a best way to do this?</p>