broadcast receiver not getting called with alarm
<p>I'm trying to call a broadcast receiver at a certain time by setting an alarm. It doesn't appear to be getting called at all. I'm trying to debug with logcat.</p>

<p>My set up for the alarm is something like this:</p>

<pre><code>    AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
    Calendar notifyAlarm = Calendar.getInstance();

    notifyAlarm.set(Calendar.HOUR, 17);
    notifyAlarm.set(Calendar.MINUTE, 00);
    Intent intent = new Intent(this, AlarmReceiver.class);
    PendingIntent pendingIntent = PendingIntent.getBroadcast(this.getApplicationContext(), 2378530, intent, 0);
    alarm.set(AlarmManager.RTC_WAKEUP, notifyAlarm.getTimeInMillis(), pendingIntent);
</code></pre>

<p>My receiver is as follows:</p>

<pre><code>    public class AlarmReceiver extends BroadcastReceiver {

private static final String TAG ="test receiver";
@Override
public void onReceive(Context context, Intent intent) {
    // TODO Auto-generated method stub


    Log.v(TAG, "receiver called");

}



    }
</code></pre>

<p>also in the manifest I have:</p>

<pre><code>    &lt;/activity&gt;
    &lt;receiver android:name="AlarmReceiver"&gt;&lt;/receiver&gt;
&lt;/application&gt;
</code></pre>

<p>Any help appreciated.</p>
