Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor himsymbian's Avatar
    Join Date
    Apr 2005
    Posts
    274
    hi,
    1)
    I want the phone numbers of all the sms within the inbox, currently the entry gives me the contact name and not the number so i added the following link:

    http://wiki.forum.nokia.com/index.ph...erations#Inbox

    2) I have three messages in my inbox.

    3) I added the SMShandler.h and .cpp code and the above instructions i followed.

    4) then i added the ReadInbox() in it my code crashes at the following line:

    const CArrayPtrFlat<CSmsNumber>& array= smsHeader.Recipients();

    CSmsNumber* smsNumber = array.At(0); // this line the code crashes as the array count is 0

    why the count is zero?
    Any suggestions please??

    Thanks,
    himanshu
    Last edited by himsymbian; 2009-10-01 at 15:24.

  2. #2
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,234
    Try with CSmsHeader class and the method is FromAddress. Search for these keywords if you cannot solve it your own.

    And yes, if you solve it then please update the Wiki code so that other people can use it.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User talk2mks's Avatar
    Join Date
    Dec 2008
    Posts
    113
    Go through this example....
    http://www.forum.nokia.com/info/sw.n...S_Example.html

    All SMS operation is done very well...
    Regards
    MKS

  4. #4
    Regular Contributor himsymbian's Avatar
    Join Date
    Apr 2005
    Posts
    274
    hi,

    Thanks kiran, it worked with your logic.

    Thanks,
    himanshu

Similar Threads

  1. Are there data for the inbox messages?
    By symbian David in forum Symbian C++
    Replies: 2
    Last Post: 2007-05-20, 05:01
  2. Delete SMS Messages From Inbox - N73
    By aliabbas in forum General Messaging
    Replies: 1
    Last Post: 2006-12-10, 09:48
  3. Replies: 0
    Last Post: 2005-09-20, 03:58
  4. Problem is reading concatenated messages
    By hammadkb in forum General Messaging
    Replies: 4
    Last Post: 2003-06-12, 09:05
  5. reading sms from the inbox
    By chandanp in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2002-11-22, 10:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved