title: AlarmManager cannot work from a broadcast receiver
body: <pre><code>AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); 
  </code></pre>
  
  <p>gives the ALARM_SERVICE cannot be resolved to a variable when called from a class that extends broadcastReceiver.</p>
  
  <p>I tried the following, </p>
  
  <pre><code>AlarmManager alarmManager = (AlarmManager) getSystemService("alarm"); 
  </code></pre>
  
  <p>I get The method getSystemService(String) is undefined for the type MyReceiver</p>