×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    28

    How do I know it's an SMS

    I'm trying to save details from SMSs that arrive in the inbox.

    I get notifications of all items that come in to the Inbox, including Bluetooth files.

    How can I tell if something that arrives is an SMS and not a Bluetooth file (or anything else)?

    Thanks,
    Liz.

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

    Re: How do I know it's an SMS

    Check the MTM type of the message.

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How do I know it's an SMS

    This is a simple example:
    Code:
    ...
    CMsvEntry* entry = iSession->GetEntryL( aEntryId );   // current entry
    ...
    if ( entry->Entry().iMtm == KUidMsgTypeSMS )
       { 
       //it's an SMS
       }
    ..
    //or
    ..
    if (  entry->Entry().iMtm == KUidMsgTypeBt )
       {
       //it's a bluetooth message
       }
    ..
    Last edited by A.A.M.; 2009-02-16 at 18:38.

Similar Threads

  1. problem sending CONCATENATED SMS
    By habier in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-07-11, 11:00
  2. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  3. Replies: 1
    Last Post: 2005-12-01, 23:57
  4. Setting up SMS development environment
    By alecswan in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-02-02, 18:28
  5. Replies: 2
    Last Post: 2002-10-02, 07:15

Posting Permissions

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