×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    4

    Can I change Default ring tone for Nokia 7650

    Hello every body,

    Im trying to change the default ring tone by using another sound file like :

    _LIT(KFileName, "c:\\Nokia\\Sounds\\xx.wav";

    TBaSystemSoundType soundType(KSystemSoundRingUID);
    TBaSystemSoundName soundName(KFileName);
    TBaSystemSoundInfo soundInfo(soundType, soundName);
    BaSystemSound::SetSoundL(fs, soundInfo); //CoeSoundPlayer::PlaySoundNow (soundType);

    this doesn't work to change the default ring tone or trying (KSystemSoundAlarmUID)to change the default alarm ring tone,
    using BaSystemSound::GetSound it does indicate file changes, But Nokia7650 doesn't consider the update !!!
    any advise? Regards, Anas

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    2

    Re: Can I change Default ring tone for Nokia 7650

    I used this code to change default ringtone in general profile and it works on my Ngage phone


    _LIT(KProfileDatabase,"c:\\system\\Apps\\profileApp\\dbProfile.db");
    _LIT(KGeneral,"PRS0");
    _LIT(KRingtone,"e:\\sounds\\digital\\wRing.mp3");

    CPermanentFileStore* fstore = CPermanentFileStore::OpenLC(CEikonEnv::Static()->FsSession(),KProfileDatabase,EFileRead|EFileWrite);
    RDbStoreDatabase database;
    database.OpenL(fstore,fstore->Root());
    RDbTable table;
    table.Open(database, KGeneral);
    table.FirstL();
    table.UpdateL();
    TDbColType colType = table.ColType(5);

    if ((!table.IsColNull(5)) && (colType == EDbColLongText))
    {
    RDbColWriteStream writeStream;
    writeStream.OpenL(table, 5);
    writeStream.WriteL(KRingtone());
    writeStream.Close();
    table.PutL();
    }
    table.Close();
    database.Close();
    fstore->CommitL();
    CleanupStack::PopAndDestroy(fstore);

    TBaSystemSoundUid KSystemSoundRingUID = {0x100048AB};
    TBaSystemSoundType soundType(KSystemSoundRingUID);
    TBaSystemSoundName soundName(KRingtone);
    TBaSystemSoundInfo soundInfo(soundType, soundName);

    BaSystemSound::SetSoundL(CCoeEnv::Static()->FsSession(), soundInfo);

Posting Permissions

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