When I set alarm for few mins from current time, it shows this Elapsed realtime wakeup (now=1263900): ELAPSED_WAKEUP #0: Alarm{43d52750 type 2 android} type=2 when=112231046 repeatInterval=0 count=0 operation=PendingIntent{43c2e498: PendingIntentRecord{43c5abb0 android broad castIntent}}
Broadcast ref count: 0 Alarm Stats: android 13692ms running, 1 wakeups 19 alarms: act=android.intent.action.TIME_TICK flg=0x40000004 1 alarms: act=android.content.syncmanager.SYNC_POLL_ALARM flg=0x4 On Tue, Apr 19, 2011 at 9:20 PM, Kostya Vasilyev <kmans...@gmail.com> wrote: > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en