×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    29

    Question: There is no "Reply" option after creating SMS in Inbox

    I have written sample code for creating SMS in inbox, but I found there is not "Reply" option in inbox list view. When I open the SMS created by me, I found that there is "Relply" option. After I search in this boards, it may cause this problem that there is no from address in corresponding field. But I don't know how to do it.


    void CSMSReceiver::CreateSMSMessageL(const TTime& aTime,
    const TDesC& aAddress, const TDesC& aMessage)
    {
    // Create entry to drafts
    iSmsMtm->SwitchCurrentEntryL(KMsvGlobalInBoxIndexEntryId );
    iSmsMtm->CreateMessageL( KUidMsgTypeSMS.iUid );

    TMsvEntry newEntry = iSmsMtm->Entry().Entry();
    newEntry.iType = KUidMsvMessageEntry;
    newEntry.iServiceId =KMsvLocalServiceIndexEntryId;
    newEntry.iMtm = KUidMsgTypeSMS;
    newEntry.SetInPreparation(EFalse);
    newEntry.SetVisible(ETrue);
    newEntry.SetUnread(ETrue);
    newEntry.SetNew(ETrue);
    newEntry.iDescription.Set(aMessage);
    newEntry.iDetails.Set(aAddress);
    newEntry.iDate.HomeTime();

    iSmsMtm->Entry().ChangeL(newEntry);
    iSmsMtm->SaveMessageL();

    CMsvStore* messageStore = iSmsMtm->Entry().EditStoreL();
    CleanupStack::PushL(messageStore);

    CRichText& body = iSmsMtm->Body();
    body.Reset();
    body.InsertL(0, aMessage);

    CSmsHeader* header = CSmsHeader::NewL(CSmsPDU::ESmsDeliver, body);
    CleanupStack::PushL( header );

    header->SetFromAddressL( aAddress );
    header->StoreL( *messageStore );

    messageStore->StoreBodyTextL( body );
    messageStore->CommitL();

    CleanupStack::PopAndDestroy(header);
    CleanupStack::PopAndDestroy(messageStore);
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Question: There is no "Reply" option after creating SMS in Inbox

    I cannot spot any obvious problem. You may try reading this thread, as a checklist maybe: http://discussion.forum.nokia.com/fo...ht=inbox+reply

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    29

    Re: Question: There is no "Reply" option after creating SMS in Inbox

    Thanks wizard_hu_. This thread has been read by me, but about "
    set name and address to a correct phone number", I don't know how to understand it. I have called "header->SetFromAddressL( aAddress )", and there is no "reply" option in inbox list view. Please notice "inbox list view". So I think that some functions should be called. How about your suggestion?

  4. #4
    Regular Contributor
    Join Date
    May 2003
    Posts
    91

    Re: Question: There is no "Reply" option after creating SMS in Inbox

    I have the same problem!

  5. #5
    Regular Contributor
    Join Date
    May 2003
    Posts
    91

    Re: Question: There is no "Reply" option after creating SMS in Inbox

    CreateMessageL()

    void CreateMessageL(TMsvId aServiceId);

    Description

    Creates a new outgoing SMS message entry as a child of the current context.

    From SDK

Similar Threads

  1. How to fake a normal SMS to inbox?
    By luandao2000 in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2011-04-23, 08:26
  2. Sending a Loopback SMS to Native Inbox
    By aricent_lbs in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-10-17, 14:53
  3. New message in SMS Inbox
    By isseyp in forum Mobile Java General
    Replies: 4
    Last Post: 2004-05-07, 14:45
  4. About get a Sms from Inbox!
    By starryshen in forum Symbian
    Replies: 0
    Last Post: 2004-04-13, 06:06

Posting Permissions

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