Sunday, August 22, 2010

[android-developers] Re: How to get absolute time ?

Yes... the reboot is problem... so I think I need a current time and
remind time.

1. get current time -> this time should not be changed by user or
location or anything else : absolute time??
2. save remind time as a sharedreference. ( ex. remind time = current
time + 30minutes)
3. start timer
4. If the device reboot before remind time, the timer will be re-set
based on the saved remind time.

how about this? In this case, I need only current absolute time. Are
there any methods for it??
(I think the absolute time what I'm saying will be used for DRM
check...)

On 8월20일, 오후9시17분, String <sterling.ud...@googlemail.com> wrote:
> On Aug 20, 11:17 am, Filip Havlicek <havlicek.fi...@gmail.com> wrote:
>
> > I think he thought on device reboot. Although I'm not sure if PendingIntents
> > are stored before device powering off.
>
> Alarms do not persist through a reboot, no. If the OP wants something
> like that to happen, they'll need to set up a receiver for
> Intent.ACTION_BOOT_COMPLETED, and re-set the alarm there.
>
> String

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate