I want to retrieve only phone number from incoming SMS from my application which will be running in the background.I have tried all the examples in the wiki but I didn't get solution.When I tried CSMSHeader::FromAddress(),its returning blank descriptor.I tried MsvEntry::Entry::iDetails which was returning contact name if phone number is saved in contact name.Is it possible to retrieve phone number in S60 3rd edition application ? Please reply me .
I have solved this issue.Now I am able to extract the phone number from incomin sms by using CSMSHeader::FromAddress().Earlier I was passing TMsVid of Inbox folder to iSmsMtm->SwitchCurrentEntryL() .Now I am passing TMsVid of new message.Now its working.
Forum posts: 822
iSmsMtm->SmsHeader().FromAddress()should do it. If not, then the sender number is somehow hidden or something. You are testing this on device?Forum posts: 2
Hi Andreas,
Thanks a lot for your reply.
I have solved this issue.Now I am able to extract the phone number from incomin sms by using CSMSHeader::FromAddress().Earlier I was passing TMsVid of Inbox folder to iSmsMtm->SwitchCurrentEntryL() .Now I am passing TMsVid of new message.Now its working.
Regards,
J.Ramesh.