×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    2

    PushRegistry alarm accuracy

    Hello,

    In tests I've done on a Nokia 6600, the accuracy of the PushRegistry alarm is out quite a bit. I set the alarm for 2 hours, and it started the MIDlet in just under 1 hour. Has anyone had any experience with setting the alarm over a number of hours?

    Daryl.

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Finland
    Posts
    51
    It should work, be careful with time zones.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    2
    OK, but what do timezones have to do with it? The PushRegistry.registerAlarm API takes a long representing the number of milliseconds since the epoch, so to set an alarm for 60 seconds from now, you would do this:

    Date now = new Date();
    PushRegistry.registerAlarm( "AlarmMIDlet", now.getTime() + 60*1000 );

    The problem is if you set the alarm for 2 hours from now (i.e. 2*60*60*1000); the alarm will be triggered before 1 hour has passed.

    Daryl.

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Finland
    Posts
    51
    You are right, I though that I have messed up with time zones but now I can reproduce the problem you mentioned. It seems that there's some undocumented upper limit for the alarm interval!
    I used 6600, don't know if this applies to other series 60 phones...

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    1

    Re: PushRegistry alarm accuracy

    I have the same problem with 6680.
    Does anyone know when the problem will be fixed?

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    6

    Re: PushRegistry alarm accuracy

    check the time settings of ur phone.. check .. GMT time and off the auto time update... it should work...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×