×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Question How to change the default sound of the alarm

    Hi All,

    I need to change the default sound of the alarm with my appliction's sound.

    I am using RASCliSession class to do so.

    I'm trying to silent the alarm default sound and playing mine.

    i.e. as soon as the status in RunL is EAlarmChangeEventTimerExpired i'm trying with the following APIs to silent the default sound :

    1>SetAlarmSoundState( EAlarmGlobalSoundStateOff )
    2>SetAlarmSoundsSilentFor()
    3>AlarmSoundsTemporarilySilenced()
    4>SetAlarmSoundsSilentUntil()

    But none of the API's are able to make it silent.

    Experts plz reply and tell the solution or other way around to change the default sound of alarm.

    I'm very needfull.Plz reply.I will appreciate every single reply.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to change the default sound of the alarm

    If i can know what all capabilities you have given to the application .

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Re: How to change the default sound of the alarm

    Quote Originally Posted by skumar_rao View Post
    If i can know what all capabilities you have given to the application .

    ReadUserData WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment Location NetworkServices SurroundingsDD

  4. #4
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to change the default sound of the alarm

    Hi,

    Its really strange, Please verify all the capability that are required and import the mmp once again.

    have you checked the return value of the API?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    68

    Re: How to change the default sound of the alarm

    Try this code

    /* 06/17/2008 17:40.00.000000 */
    _LIT(KMiddleDateTime,"20080617:174000.000000");



    RAlarmServer almServer;
    TAlarmInfo almInfo;
    TTime time(KMiddleDateTime);

    almInfo.iAlarmId = 0;
    almInfo.iMessage = _L("Hello Pramod");
    almInfo.iSound= _L("C:\\System\\Apps\\Sound\\soundfile.wav");
    almInfo.iAlarmTime = time;


    almServer.SetClockAlarm(almInfo.iAlarmId,almInfo.iAlarmTime,almInfo.iMessage,almInfo.iSound,EAlarmClockOnce);

    almServer.AlarmEnable(ETrue,almInfo.iAlarmId);
    "Nobody will believe in you unless you believe in yourself."

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Re: How to change the default sound of the alarm

    Quote Originally Posted by kkrish View Post
    Hi,

    Its really strange, Please verify all the capability that are required and import the mmp once again.

    have you checked the return value of the API?
    Thanks for the reply...yeah i cross checked all the required capabilities(however all needed are added) also I again imported the application but no benifit.

    I have also checked with the return value of the API eg. SetAlarmSoundsSilentFor() is returning KErrNone which if successful.....SetAlarmSoundState( EAlarmGlobalSoundStateOff ) is also successfull.....but not giving the expected answer.

    However AlarmSoundsTemporarilySilenced() is returning EFalse (sounds are not silent)....but i'm using it correctly

    So if its not possible to make it silent?
    Plz tell whether any other way is there to overwrite or replace the existing alarm sound?
    Last edited by gaurav C; 2008-06-19 at 11:29.

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Re: How to change the default sound of the alarm

    Quote Originally Posted by murthy.pramod View Post
    Try this code

    /* 06/17/2008 17:40.00.000000 */
    _LIT(KMiddleDateTime,"20080617:174000.000000");



    RAlarmServer almServer;
    TAlarmInfo almInfo;
    TTime time(KMiddleDateTime);

    almInfo.iAlarmId = 0;
    almInfo.iMessage = _L("Hello Pramod");
    almInfo.iSound= _L("C:\\System\\Apps\\Sound\\soundfile.wav");
    almInfo.iAlarmTime = time;


    almServer.SetClockAlarm(almInfo.iAlarmId,almInfo.iAlarmTime,almInfo.iMessage,almInfo.iSound,EAlarmClockOnce);

    almServer.AlarmEnable(ETrue,almInfo.iAlarmId);

    I think RAlarmServer is deprecated in 3rd edition, so i am not able to compile the code. Is there any other workaround using RASCliSession interface.

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Re: How to change the default sound of the alarm

    Experts plz reply....Plz tell a possible solution to this problem.

    Also, I have heard that most of the public API's of RASCliSession do not work.Is it so?


    http://wiki.forum.nokia.com/index.ph...es_are_ignored

    http://discussion.forum.nokia.com/fo...d.php?t=102773

    Experts plz do reply......

  9. #9
    Registered User
    Join Date
    Jan 2008
    Posts
    40

    Unhappy Re: How to change the default sound of the alarm

    Should I assume that this is a known Issue...and there is no solution for this till date ???

    So alarm sound cannot be customized with public SDK.Right???
    And this problem cannot be solved!

  10. #10
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: How to change the default sound of the alarm

    As you have already seen in the KIS000639 - Custom alarm sounds and categories are ignored known issue the custom alarms are ignored. I will ask for this KI to be reviewed, to see if there are any changes in the alarm server implementation but I would not expect miracles.

    You can try changing the global clock alarm setting but that would make all alarms to sound the same, only different than what the user has already set as a preference. Not necessarily a good idea. Alternatively you can try to use the RSheduler to wake up your application at the preset alarm time in order to play your choice of media file.

    P.S. I've noticed your requests for expert help. Well, there are so many excellent contributors on these boards that can provide at least as good advice as a "Forum Nokia Expert". If however you feel that you need more focused assistance please consider using the Technical Support service.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. how to change default locale in midp
    By jackofall in forum Mobile Java General
    Replies: 1
    Last Post: 2007-12-28, 08:28
  2. Change default syncronization type
    By msowka in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-09-11, 16:31
  3. Carbidej change of default video
    By dar7ren in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-14, 01:15
  4. change the default real player?
    By lior_zilberg in forum Symbian
    Replies: 0
    Last Post: 2005-03-02, 09:28
  5. Change the default font for 7650
    By edmundkkchan in forum Symbian
    Replies: 1
    Last Post: 2002-09-24, 07:02

Posting Permissions

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