Trapping incoming sms done, but affecting outgoing ones

Login to reply to this topic.
Thu, 2005-04-14 14:54
Joined: 2004-06-07
Forum posts: 178
Hi,
I created an exe that runs in the background, intercepts incoming sms, process them,  and eventually delete them. I caught those sms using MMsvObserver::HandleSessionEventL, EMsvCreated.
This rose a problem. N.B my exe is still running in the background; I try to send an sms, but as soon as i open "send message", i get an error that reads: "general - message deleted - 7005"
Does anyone know how can i overcome it, i.e. trapping incoming sms and not affecting the outgoing ones? Huh
Thanks in advance,
Regards.

Thu, 2005-06-02 07:30
Joined: 2005-03-21
Forum posts: 45
Re: Trapping incoming sms done, but affecting outgoing ones
Hi,

Iam working on a project which listends for incoming sms, but when i try to create a EXE with the code the app just crashes but the same code runs if its normal .app file. can u please share the code.
Thu, 2005-06-02 08:10
Joined: 2004-06-07
Forum posts: 178
Re: Trapping incoming sms done, but affecting outgoing ones
check:

http://forum.newlc.com/index.php?topic=4097.0

Hopefully this will help.
Fri, 2005-06-03 08:30
Joined: 2005-03-21
Forum posts: 45
Re: Trapping incoming sms done, but affecting outgoing ones
Hi Acelias,

A million thanks for the link. It worked. Thanks again Smiley
Fri, 2005-06-03 10:31
Joined: 2004-09-06
Forum posts: 235
Re: Trapping incoming sms done, but affecting outgoing ones
I think your exe deletes all the messages. Even the messages created by default SMS application.
comment out the deletion part and check if it works...
Fri, 2005-06-03 11:15
Joined: 2004-12-03
Forum posts: 276
Re: Trapping incoming sms done, but affecting outgoing ones
Hi,

I think where you are getting the message creation event you are not checking where the message is created.... Anywhere(inbox, outbox, sent items, etc) a message is created u will get this event.....

So add a check that u tap only those messages which is created in inbox.....
Code:
TMsvId* entryId = static_cast<TMsvId*>(aArg2);          // entry id from the session event

// new entry has been created in Inbox folder
if (*entryId == KMsvGlobalInBoxIndexEntryId)
{
...
Do you your deletion part here....
....
}
   

Dennis

Today is a gift by GOD, that's why it is called the present.

Fri, 2005-06-03 20:41
Joined: 2004-08-15
Forum posts: 24
Re: Trapping incoming sms done, but affecting outgoing ones
Hi,

Can you please tell me when i can find information to setup my symbian app to run in background?
Thanks.

Sam

sam

Mon, 2005-06-06 08:15
Joined: 2004-06-07
Forum posts: 178
Re: Trapping incoming sms done, but affecting outgoing ones
Hi yinglcs,
Check the following link: http://forum.newlc.com/index.php?topic=4097.0

dennis_george ,
Thanks a lot, that was the problem Smiley it's solved now,
Regards.
  • Login to reply to this topic.