×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  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?

  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 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.

  7. #7
    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......

  8. #8
    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!

  9. #9
    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.

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 C++
    Replies: 0
    Last Post: 2005-03-02, 09:28
  5. Change the default font for 7650
    By edmundkkchan in forum Symbian C++
    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
  •