×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    5

    How to get incoming sms number?

    hi,

    anybody can tell me the method in symbian os 9.1?

    thanks & regards

  2. #2
    Registered User
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to get incoming sms number?

    hi,
    this gives the address of the incoming number defined in msvstd.h
    TMsvEntry MsvEntry = iMtm->Entry().Entry();
    TBufC<20> itext(MsvEntry.iDetails);

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    5

    Re: How to get incoming sms number?

    Hi Mateen Maldar,

    thank you very much!
    you have given me a big favor!

    i do get the incoming sms number which is not in my contacts, and if the number is in contacts i would get the contact name.

    i have another quesion:
    it always appears a prompt dialog when a sms arrive.
    is it possible to hide the dialog?

  4. #4
    Registered User
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to get incoming sms number?

    hi,

    you could hide the dialog by marking the SMS read.

    And check the TMsvEntry from the mmsvids.h to retrive the number.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    5

    Re: How to get incoming sms number?

    hi,
    thank you all the same.

    i try it, but happen nothing.
    i have no enough sms examples.
    here is my code, in which there must be something wrong.

    switch (aEvent)
    {
    case EMsvEntriesCreated:
    if (*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId)
    {
    CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
    iNewMessageId = entries->At(0);
    iSmsMtm->SwitchCurrentEntryL(iNewMessageId);
    TMsvEntry entry = iSmsMtm->Entry().Entry();
    entry.SetUnread(EFalse);
    }
    break;
    default:
    break;
    }
    When you are used to remind the past, you have been being old.

  6. #6
    Registered User
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to get incoming sms number?

    hi,

    u can download the examples for the following link

    http://www.forum.nokia.com/info/sw....S60_2x.zip.html

    There a MessageObserver example which is a simple description of the sms example.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  7. #7
    Registered User
    Join Date
    Jun 2006
    Posts
    5

    Re: How to get incoming sms number?

    hi,

    it's a nice sms example, in which i learn much.
    i must implement something before my summer vocation.

    thanks & regards
    When you are used to remind the past, you have been being old.

Similar Threads

  1. Can I test SMS receiver on the phone without port number?
    By brighteyes in forum Mobile Java General
    Replies: 10
    Last Post: 2007-11-26, 23:38
  2. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:02
  3. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:01
  4. Replies: 1
    Last Post: 2005-12-01, 23:57
  5. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52

Posting Permissions

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