title: How to get the number of alarms from the alarms db in android
body: <p>I need to get the number of alarms that have currently been set. I tried one approach, as illustrated here : <a href="https://stackoverflow.com/questions/22523404/how-to-get-the-number-of-alarms-in-android-phone?noredirect=1#comment34273714_22523404">How to get the number of alarms in Android phone?</a></p>
  
  <p>Can I do this by reading the alarms database? Can someone please post code showing me how to do the same?</p>
  
  <p>Any other solution will also be appreciated.</p>