I have an AlarmService that wakes up every 15 minutes and fires off an IntentService. However, I would like to make sure that if a previously started IS is already running, that the AlarmService doesn't try to start another one (the IS is dealing with files and there would be an odd race condition if a second version tried to act on the same files).
What's the best way to poll the system to see if an instance of my IS is already running and just skip the current iteration of the AlarmService cron?