title: Android Alarm Not Firing
body: <p>I am trying to register an alarm with the android alarm manager and cannot seem to figure out why the the alarms aren't firing.   I've looked at many examples online and my code seems to be doing the same thing that they suggest but still no success.  I am running it on android 4.4 (KitKat) </p>
  
  <p>Here is how I set the alarm:</p>
  
  <pre><code>public void registerAlarm(Context context, int hour, int minute) {
      AlarmManager alarmMgr = (AlarmManager) context.getSystemService(
              Context.ALARM_SERVICE);
      Intent intent = new Intent(context, AlarmReciever.class);
      PendingIntent alarmIntent = PendingIntent.getBroadcast(context,
              0, intent, 0);
      Calendar calendar = Calendar.getInstance();
      calendar.set(Calendar.HOUR_OF_DAY, hour);
      calendar.set(Calendar.MINUTE, minute);
      calendar.set(Calendar.SECOND, 0);
      alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 10000,
              alarmIntent);
  }
  </code></pre>
  
  <p>and here is how my receiver for it:</p>
  
  <pre><code>package com.alarm.alarm;
  
  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.widget.Toast;
  
  public class AlarmReciever extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Toast.makeText(context, "recieved", Toast.LENGTH_LONG).show();
     }
  }
  </code></pre>
  
  <p>Here is how I declare my receiver in the manifest </p>
  
  <pre><code>&lt;receiver android:name="com.alarm.alarm.AlarmReceiver"&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>and here is the SET ALARM permission</p>
  
  <pre><code>&lt;uses-permission android:name="com.alarm.permission.SET_ALARM"/&gt;
  </code></pre>
  
  <p>I have been stuck on this issue for hours.  any clarification as to what i might be doing wrong would be greatly appreciated!</p>