×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    38

    [moved] How can i solved Feature not supported(-5)?

    I have write a program to send file over bluetooth. But i have found a error such as Feature not supported(-5) when i try to send file. Where is my Problem? Anybody can solve my problem as soon as possible. My code is under below:


    _LIT(KOtherFileName, "C:\\SMS.txt");
    CreateStartDateFormat();
    CreateEndDateFormat();
    CreateSMS();
    sc = TSendingCapabilities(KMaximumSizeUnknown,KMaximumSizeUnknown, TSendingCapabilities::ESupportsAttachments);
    CDesCArrayFlat* attachmentArray = new (ELeave) CDesCArrayFlat(KDefaultGranularity);
    CleanupStack::PushL(attachmentArray);
    // Add the first attachment
    TFileName attachmentName(KPublicAttachmentFile);
    User::LeaveIfError(CompleteWithAppPath(attachmentName));
    attachmentArray->AppendL(attachmentName);

    TFileName attachmentOtherName(KOtherFileName);
    User::LeaveIfError(CompleteWithAppPath(attachmentOtherName));
    attachmentArray->AppendL(attachmentOtherName);

    for(TInt i=0; i< attachmentArray->Count(); i++)
    {
    data->AppendAttachmentL(attachmentArray->MdcaPoint(i));
    }
    if(iSendUI->ValidateServiceL(KSenduiMtmBtUid,sc))
    {

    //TRAP(err, iSendUI->CreateAndSendMessageL(KUidMsgTypeMultimedia,data,NULL,EFalse));
    iSendUI->CreateAndSendMessageL(KSenduiMtmBtUid,data, KNullUid, EFalse);

    }
    //User::LeaveIfError(err);
    CleanupStack::PopAndDestroy(attachmentArray);
    CleanupStack::PopAndDestroy(data);

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: How can i solved Feature not supported(-5)?

    check all the required capability in your .mmp file.
    LocalServices, NetworkServices, ReadDeviceData, WriteDeviceData, ReadUserData, WriteUserData

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

    Re: How can i solved Feature not supported(-5)?

    Are you getting KErrNotSuported on device or on the emulator? Which method returns this error and what does the SDK documentation says about it?

    As for capabilities I have serious doubts that all those listed by Nitesh are needed, have a good look at them and only add those truly required.
    -- 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

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    38

    Re: How can i solved Feature not supported(-5)?

    Quote Originally Posted by ltomuta View Post
    Are you getting KErrNotSuported on device or on the emulator? Which method returns this error and what does the SDK documentation says about it?

    As for capabilities I have serious doubts that all those listed by Nitesh are needed, have a good look at them and only add those truly required.
    I'v check my application in emulator and found this. The message come when the program reach the following statement:

    iSendUI->CreateAndSendMessageL(KSenduiMtmBtUid,data, KNullUid, EFalse);

    Please give the solution.

Similar Threads

  1. feature not supported using CMdaAudioRecorderUtility
    By fagiano in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2012-07-06, 11:38
  2. Feature Not Supported
    By smnsolomon in forum Symbian
    Replies: 8
    Last Post: 2009-01-17, 13:33
  3. [announce] feature module for 3rd
    By cyke64 in forum Symbian
    Replies: 6
    Last Post: 2007-02-04, 13:54
  4. Menu: Feature not supported
    By gmit in forum Symbian
    Replies: 9
    Last Post: 2007-02-01, 20:55
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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