Brad,

You can verify the alarm (as saved by Android) by typing "adb shell dumpsys alarm" in your development computer's command line window.

Your alarm should be listed among others there, something like this:

  RTC_WAKEUP #2: Alarm{2b34f5f8 type 0 com.google.android.gsf}
    type=0 when=+26m7s835ms repeatInterval=1800000 count=0
operation=PendingIntent{2b36d1d8: PendingIntentRecord{2b224ec8 com.google.android.gsf broadcastIntent}}

Also check if the timestamp used to set the alarm is correct (it should be in UTC), that TimeAlarm is a broadcast receiver listed in the manifest, and that TimeAlarm.onReceive() can handle null action.

The reason for this last point is that your code constructs "activate" without an action string. I'm actually not quite sure if a broadcast intent with no action is valid, you might want to specify one (and update the receiver's <intent-filter> accordingly).

-- Kostya

19.04.2011 19:06, Brad Stintson ?????:

      Intent activate = new Intent(this, TimeAlarm.class);
PendingIntent alarmIntent = PendingIntent.getBroadcast(this, 0, activate, 0);
       alarms = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
alarms.set(AlarmManager.RTC_WAKEUP, d.getTimeInMillis(), alarmIntent);


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to