"Managing" AlarmManager. How to detect if I already have Repeating alarm running?
<p>I have service that I need to run every 5 minutes. I already have code to schedule repeating Alarm on device boot. It works but</p>

<ol>
<li><p>When installing app and running it my alarm doesn't run. Need to reboot debice. This is expected.</p></li>
<li><p>If I start repeating alarm on activity start then I'm not sure if I already have alarm going from device boot. Will I get "doubles"? Will it run 2 alarms?</p></li>
</ol>

<p>Basically, I want to make sure that I start alarm if user reboots device or battery dies, etc. But I also don't wan't them to reboot device when app installed to get it started. Or, for example if user "Force close" and then run app - it won't run this service anymore but it needs to. And, I don't want double-runs. I just need once every 5 minutes.</p>

<p>How this can/need to be done?</p>
