I think he thought on device reboot. Although I'm not sure if PendingIntents
are stored before device powering off.

2010/8/20 String <[email protected]>

> On Aug 20, 11:02 am, optimusgeek <[email protected]> wrote:
>
> > I'll notify something to user after 30 minutes for example.
>
> > Can I use alarm manager for this?
>
> Yes. Your code will look something like this:
>
> AlarmManager am =
> (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
> am.set(AlarmManager.ELAPSED_REALTIME,
>        SystemClock.elapsedRealtime() + 30 * DateUtils.MINUTE_IN_MILLIS,
>        pendingIntent);
>
> ...where pendingIntent is a PendingIntent you've declared for whatever
> action you want to occur half an hour from now.
>
> > It also should work even in case of power off and on.
>
> Not possible, I'm afraid. AFAIK, there's nothing you (as a programmer)
> can do to power-up the phone if it's off.
>
> String
>
> --
> 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]<android-developers%[email protected]>
> 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 [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