×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2005
    Posts
    131

    Open a SMS message

    Hi,
    is it possible and how to open a SMS message whose mtm is different than KUidMsgTypeSMS and therefore belonging to another thirdparty MTM?
    I have tried for example the following (CleanupStack operations left out for simplicity)

    CBaseMtm* clientMtm = mtmRegistry->NewMtmL( KUidMsgTypeSMS );
    clientMtm->SwitchCurrentEntryL( myMsgId );
    CBaseMtmUi* ui = pMtmUiReg->NewMtmUiL( *clientMtm );
    ui->BaseMtm().SwitchCurrentEntryL( myMsgId );
    CMsvOperation *operation = ui->OpenL( aStatus );

    However the last command doesn't work and it throws Panic SMSMtmUI 2.
    And if instead I use ViewL instead, it throws Panic SMSMtmUI 21.

    Can someone please enlighten me on this?

    I was also thinking to launch directly the SMSViewer, but I don't know what parameters should be passed (surely the TMsvId but how?)

    Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Open a SMS message

    MTM-s work with their own messages. However if that 3rd-party MTM is present on the device, you can also get it from the registry, use TMsvEntry::iMtm instead the constant.

  3. #3
    Regular Contributor
    Join Date
    Nov 2005
    Posts
    131

    Re: Open a SMS message

    Thanks.
    The 3rd party MTM is my own and indeed I am trying to open in the mtm-ui a SMS message which has the TMsvEntry::iMtm set to my mtm uid.
    However I would like to open it by using the native viewer.

Similar Threads

  1. Sms porting problem
    By Ikhtys in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-12-05, 10:05
  2. Why is there always tip message show before SMS after JAVA Sign?
    By nb0574119 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-11-29, 00:16
  3. Why is there always tip message show before SMS after JAVA Sign?
    By nb0574119 in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 0
    Last Post: 2007-11-23, 02:28
  4. 3585 SMS Message Question/Problem
    By GSTTuner1105 in forum General Messaging
    Replies: 2
    Last Post: 2004-01-10, 06:30
  5. Doubt in Nokia PC Connrctivity SDK 2.1 demo (Visual basic).
    By narumugai in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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