Hello
I want to know how the Symbian OS notify when some new SMS arrive on the phone.i wnat to know implement this feature in my application how can do this.If yes then how..
I'm using part of the GDSMS code for notification of incoming and outgoing SMS. The problem is that it also recognize MMS. Is there a workaround just to monitor sms?
and you get notifications of session events like incoming messges in method
handlesessioneventL() in which you read the incoming SMS and that methos has to be implemented when using MMsvSessionObserver class :
case EMsvEntriesCreated:
// notifies changes in the Inbox
if (*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId)
{
CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
iNewMessageId = entries->At(0);
}
break;
case EMsvEntriesChanged:
//reading the SMS here into a rich text object , after its entry has been finally created
if (*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId)
{
CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
if (iNewMessageId == entries->At(0))
{
// Set entry context to the new message
iMsvEntry->SetEntryL(iNewMessageId);
// Open the store, read-only
CMsvStore* store = iMsvEntry->ReadStoreL();
CleanupStack::PushL(store);
// Get body text and send it to the container
if (store->HasBodyTextL())
{
yucca,
please help me!!
I have written an application to handle a BIO Message type... But I have some problems. My architecture is like the one proposed in BioExample example. I have a parser class (derived from CBaseScriptParser that is actived when the specific sms arrives.) and an external application launched automatically when the specific sms arrives..... The APPUI of this one derives from MMsvSessionObserver and I re-implemented the virtual function HandleSessionEventL() This function is called one time, after I callCMsvSession::OpenAsyncL(*this)... Besides, at the end, message box on the cellular phone doesn't respond... Even if my parser is correctly destroyed, this message box has a strange behaviour,it doesn't respond to any command....Çoul help me to understand what it's wrong my code? Thanks in advance. Lia