×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    6

    Problem launching app CAknKeySoundSystem->iKeySounds->AddAppSoundInfoListL(R_MYAPP_S

    When launching my app I get the message "Unable to execute file for security reasons." I thought getting a developer certificate and UID in the protected range would fix it but it didn't code is below.

    XXAppUi.h
    CAknKeySoundSystem* iKeySounds;

    XXAppUi.cpp
    iKeySounds = KeySounds();
    iKeySounds->AddAppSoundInfoListL(R_MYAPP_SOUND_LIST);

    XX.rss
    RESOURCE AVKON_SOUND_INFO_LIST r_myapp_sound_list
    {
    list =
    {
    AVKON_SOUND_INFO
    {
    sid = ERoshamboSoundWin;
    file = "\\private\\20025B5B\\whoopy.au";
    volume = 5;
    },
    AVKON_SOUND_INFO
    {
    sid = ERoshamboSoundLose;
    file = "\\private\\20025B5B\\yeowch.au";
    volume = 5;
    },
    AVKON_SOUND_INFO
    {
    sid = ERoshamboSoundDraw;
    file = "\\private\\20025B5B\\boing_1.wav";
    volume = 5;
    }
    };

    XX.pkg
    "C:\Symbian\Carbide\workspace\RockPaper\gfx\whoopy.au"
    -"!:\private\20025B5B\whoopy.au"
    "C:\Symbian\Carbide\workspace\RockPaper\gfx\yeoch.au"
    -"!:\private\20025B5B\yeowch.au"
    "C:\Symbian\Carbide\workspace\RockPaper\gfx\boing_1.wav"
    -"!:\private\20025B5B\boing.wav"

    I also tried using \resource\apps\<soundfile> location, no luck.
    Thanks!!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Problem launching app CAknKeySoundSystem->iKeySounds->AddAppSoundInfoListL(R_MYA

    You'll get that error when you don't have correct capabilities defined, thus check the epocwind.out in the emulator for missing capabilities and add them into your project.

    also SDK docs often do specify what capabilities are required by the APIs and their functions.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    6

    Re: Problem launching app CAknKeySoundSystem->iKeySounds->AddAppSoundInfoListL(R_MYA

    Thanks for the help. I didn't check that before. In this case, the API says "Required Capabilities None"

    I'm really just trying to play a custom sound. It plays System sounds fine. Do you know of any sample projects to implement the simple playing of a custom sound? I've actually been at this for a couple of weeks with no resolution.

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Problem launching app CAknKeySoundSystem->iKeySounds->AddAppSoundInfoListL(R_MYA

    Quote Originally Posted by david.2.sanchez@nokia.com View Post
    In this case, the API says "Required Capabilities None"
    Which API? Have you identified which API call fails?
    -- 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

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Problem launching app CAknKeySoundSystem->iKeySounds->AddAppSoundInfoListL(R_MYA

    "Unable to execute file for security reasons" says that your application can not be executed at all. So the problem is not about using the API, since usage of any API would happen after the application starts.
    Make sure that the capabilities specified in your .mmp file are covered by your developer certificate. If you happen to use an own .dll, remember to the rule: a process can not load a .dll having less capabilities than the process itself.

    And a side-note: private folder is private because other processes can not access it. The media server is considered as "other process" in this context, and it will not be able to access the audio files from your private folder.

Similar Threads

  1. Problem with Widcomm BT app connection (passcode prompt)
    By frizik in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-10-04, 10:23
  2. Socket connection problem with signed app
    By tieutue in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-07-10, 12:31
  3. java chat app problem for n95
    By brooklynsun in forum Mobile Java General
    Replies: 1
    Last Post: 2008-06-12, 08:57
  4. Replies: 3
    Last Post: 2006-11-13, 11:57
  5. Bluetooth Python Standalone APP problem
    By wallace_nogueira in forum Symbian
    Replies: 0
    Last Post: 2005-05-03, 19:25

Posting Permissions

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