Hi Champions
I have developed a small application to monitor the outgoing SMSs and to stop it from being sent, after we capture it's number and text, so we will send it later using some internet service.
Now the code interupt the sms correctly and delete it and it is not being sent alreadyGreat.
But just after it is deleted it gives a system error message "General: Message Deleted".
this error does not affect any thing. the sms is already handled, and, but this error nags the user.
trying to move the sms from outgoing to sent folder does not affect stop the message from sending.
is there any alternative solutions, or how could i hide that system message ?
Thanx
Khalid
my code to delete it under HandleSessionEventL() event
Code:case EMsvEntriesChanged: TMsvId Id = *(static_cast<TMsvId*>(aArg2)); if(Id == KMsvGlobalOutBoxIndexEntryId) { CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1); if (iNewMessageId == entries->At(0)) { if( !iMsvEntry ) { return; } // Set entry context to the new message iMsvEntry->SetEntryL(iNewMessageId); if ( iMsvEntry->Entry().iMtm != KUidMsgTypeSMS ||!iMsvEntry->Entry().Complete() ) { return; } // Read-only store. CMsvStore* store = iMsvEntry->ReadStoreL(); CleanupStack::PushL(store); TBuf<50> num(iMsvEntry->Entry().iDetails); MobileNumber.Copy(num); if (store->HasBodyTextL()) { CRichText* richText = CRichText::NewL( CEikonEnv::Static()->SystemParaFormatLayerL(), CEikonEnv::Static()->SystemCharFormatLayerL()); CleanupStack::PushL(richText); store->RestoreBodyTextL(*richText); const TInt length = richText->DocumentLength(); SMSText = richText->Read(0, length); CleanupStack::PopAndDestroy(richText); } CleanupStack::PopAndDestroy(store); // change state to sent, does not have effect. TMsvEntry entry = iMsvEntry->Entry(); entry.SetSendingState( KMsvSendStateSent ); // Delete the sms, way 1, gives "Message Deleted" error //iMsvSession->RemoveEntry(iNewMessageId); // Delete the sms, way 2, gives "Message Deleted" error iMsvEntry->DeleteL(iNewMessageId);

Great.




