Android AlarmManager not Triggering
<p>I'm just trying to get a simple test app working with AlarmManager.</p>

<pre><code>public class TestActivity extends Activity {
    private static final int PERIOD = 1000;

    private AlarmManager alarmManager;
    private PendingIntent pendingIntent;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        Log.v("TextActivity", "WHY NOT!");

        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);

        alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);

        Intent intent = new Intent(this, TestReceiver.class);
        pendingIntent = PendingIntent.getBroadcast(this, 0, intent,
                PendingIntent.FLAG_CANCEL_CURRENT);
        alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,
                System.currentTimeMillis(), PERIOD, pendingIntent);

        Log.v("TestActivity", "Whee!");
    }
}

public class TestReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.v("TestReceiver", "Got Here");
    }
}
</code></pre>

<p>I have tried this on both a hardware phone and the emulator and I am not seeing the messages received. Am I missing something obvious? I am relatively new to Android development.</p>
