×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    43

    Scheduler/ Periodic Task with configurable start time

    Hello,

    I'd like to implement a periodic service in my Symbian application which would run based on 2 parameters - start time and interval. It should start when the current time is equal to start time and then run periodically based on interval. I've been trying to use the RTimer class to implement this functionality.

    However, based on my understanding, RTimer can only run a task based on interval. It can not be used to configure a task to start at a specified time. To be precise, I'm looking for functionality similar to that offered by Java's timer class which has a schedule method

    void schedule(TimerTask task, Date firstTime, long period)
    Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.

    I'd like to control the first execution of my task based on a certain date/ time. I've seen a few messaging applications which can schedule sending out a SMS at a particular time and I'm doing something similar. Can it be done with active scheduler? If so, how. If not, what are the other options to achieve this.

    Thanks in advance for an early reply.

    Regards,
    G

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Scheduler/ Periodic Task with configurable start time

    Search for RScheduler on Forum Nokia Wiki and you may get something useful.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    43

    Re: Scheduler/ Periodic Task with configurable start time

    Is there a sample code on RScheduler which shows how to configure the start time?

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Scheduler/ Periodic Task with configurable start time

    Quote Originally Posted by gkpl View Post
    Is there a sample code on RScheduler which shows how to configure the start time?
    Please read the reply carefully. Search on Wiki for that.
    Nokia Developer Wiki Moderation team

Similar Threads

  1. [moved] How can I remove a task from scheduler when uninstalling the an application?
    By jose_yallouz in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2010-01-25, 18:41
  2. task scheduler validity
    By jose_yallouz in forum Symbian
    Replies: 0
    Last Post: 2010-01-22, 17:04
  3. Replies: 2
    Last Post: 2008-08-26, 22:44
  4. How to use Task Scheduler ???
    By ibraheemJazba in forum Symbian
    Replies: 0
    Last Post: 2007-02-27, 10:26
  5. task scheduler/event generate & catch
    By maciejprzybycien in forum Symbian
    Replies: 0
    Last Post: 2004-07-12, 17:09

Posting Permissions

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