Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89
    Hi everybody,

    i hope someone can help me.
    I'm programming an alarm-app. The user shall define up to 4 alarm per day and the range of following alarms. Example: The user sets the alarm today and per day at 9.00, 12.00, 16.00 and 20 o'clock and the alarm shall be active until 29th Oct.(for 2 days). How to define the alarm? The documentation of the alarmserver-api is not so good at all. Or shall i program an extra application which runs in the background(with a timer) and an app which configures the alarms? Thank you!!! Jens

  2. #2

  3. #3
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89
    The Problem is how i can use the Alarms, i've no idea how to use the classes and functions. Has anyone some examples on how to create and work with the alarm-classes and the new alarm-classes? Would be nice.

    Or is it possible to use the CAgn-Classes (Agenda) and start a foreign application via the Agenda-Classes?

    Thanks for help!!!

  4. #4
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89
    No idea? Hm...the documentation in the SDK ist too... uhhhmmm....yes sou know it

  5. #5
    Super Contributor mayankkedia's Avatar
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    Did u try using :-

    CCalEntry* myEntry = CCalEntry::NewL(TType aType, HBufC8 *aUid, TMethod aMethod, TUint aSeqNum, const TCalTime &aRecurrenceId, CalCommon::TRecurrenceRange aRange);

    To create the Calendar Entry and then use something like :-

    myEntry->SetAlarmL(myAlarm);

    Prior to this make an alarm instance using :-

    CCalAlarm* myAlarm = CCalAlarm::NewL();

    And setting the time offset using:-

    myAlarm->SetTimeOffset(TTimeIntervalMinutes aOffset);

    I am sure you will more information on this in the SDK document.

    Cheers

  6. #6
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89
    Hi mayankkedia!

    Thanks for your answer, but that's not what i'm looking for. I need to start another application, because i want to show my own dialog which has a inputbox. Is there no way to start another application via the calender or alarms?

    Thanks!

  7. #7
    Super Contributor mayankkedia's Avatar
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    You could also use the CPeriodic class..and for the same u can set the time to what u want..and then have it give a callback to the function u want to use to show the text popup or other functionalities..For this u need to do something like ->

    TTime myTime;
    myTime.HomeTime(); // sets the time to the current time
    CEikTimeEditor myTimeEditor;
    TTime myAlarmTime = myTimeEditor.Time();
    TTimeMicroSeconds myTickInterval = myTime.MicroSecondsFrom(myAlarmTime); // This gives u the duration after which u should expect the call in your tick function
    iPeriodicTimer = CPeriodic::NewL(CActive::EPriorityStandard);
    iPeriodicTimer->Start(myTickInterval ,myTickInterval ,TCallBack(Tick, this));

    Also if you wanted time settings in UTC u can make changes in confirmation with the SDK but that should not make much of a difference to you since u r any ways taking the duration..which will be the same in both the cases.

    Where Tick is the function u should write to handle what u need done when the timer has fired that function.

    You should ofcourse refine this approach to handle multiple scenarios..hope this does the job for you.

    Cheers
    Mayank

  8. #8
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89
    Thanks a lot.
    The next step is to start my app on boot as a daemon. Maybe EZ-Boot may help.

    Thank you.

  9. #9
    Regular Contributor jensesaat's Avatar
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

  10. #10
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    for running your application at startup you need to define a Recognizer and it stored in \system\recogs\ folder.

    this will create recognizer.
    http://mikie.iki.fi/symbian/autostart.html


    this link help you to alarm server.
    http://mikie.iki.fi/lxr/source/Conte..._alarm.cpp#013

Similar Threads

  1. 6101 Alarm sound set (PIM api)
    By iea@e-infonor.com in forum Mobile Web Site Development
    Replies: 8
    Last Post: 2011-01-13, 09:51
  2. Setting Alarm
    By SymbieRahul in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-09-16, 12:35
  3. Urgent help for alarm application..
    By ruchitjoshi in forum Mobile Java General
    Replies: 0
    Last Post: 2006-02-09, 01:38
  4. 6230 bug Phone swichtes on after alarm clock is set
    By danzor in forum General Development Questions
    Replies: 2
    Last Post: 2004-07-07, 02:56
  5. RAlarmServer - SetAlarmPlayIntervals & Alarm sound
    By plonnrot in forum Symbian C++
    Replies: 1
    Last Post: 2003-08-12, 06:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved