views:

469

answers:

2

I am doing sample application using windows mobile 5.0. When i receive an SMS i want to check for certain criteria for (eg:"Honda"), if i found that word i will do my process, if not present it must be stored in Inbox. i done the code receiving sMS and search criteria, i don't no how to put the SMS in the Inbox

anybody got an idea for doing this just give me hint i will do on my own. expecting your reply.

+1  A: 

Chris has written a sample application which is similar to what you are looking for. Mobile SMS Remote Read the blog post and try out the samepl code. Once you understand how it works then try your code. If you have any questions, post it here. Please avoid asking us to code the entire project for you.

Shoban
i done the code receiving sMS and search criteria, i don't no how to put the SMS in the Inbox
Siva CCSPL
A: 

The first step in catching received SMS text messages is to create an instance of the MessageInterceptor class that lives in the Microsoft.WindowsMobile.PocketOutlook assembly. You need to be careful about where you define this instance as if it goes out of scope and is garbage collected the message interception will stop.

MessageInterceptor interceptor = new MessageInterceptor(InterceptionAction.NotifyAndDelete);An InterceptionAction is passed to the constructor. This parameter defines the behaviour which occurs when a message is received. The two options are:

» Notify - The message interceptor gets a chance to process the message but it is also received by the standard SMS inbox application. » NotifyAndDelete - The message does not become visible to the user and is only seen by the message interceptor.

Siva CCSPL