Geeks With Blogs
HandledException *.*

I delivered a session on Windows Mobile programming with a focus on WM 5.0 in Coimbatore during the MSDN @ Campus event. I demonstrated a Bluetooth application using the 32feet API and Message Interception API in WM 5.0. I am reminded to point out that Peter Foot of the OpenNETCF fame, has separated a few APIs including the Bluetooth library into 32feet, which is worth noting for Bluetooth enthusiasts.

I have uploaded my demos here-

Bluetooth demo (scenario was communication between a PPC and a Desktop machine at a Pizza Company)
[Demo will be upload the shortly]

Download the SMS interception demo

The SMS Interception demo has inline documentation to help you understand its working.

/*
 *
 * ---------------------------------
 * Running the application
 * ---------------------------------
 *
 * 1. Make sure you have VS 2005 and Windows Mobile 5.0 PocketPC SDK installed
 * 2. Run the application and use the Windows Mobile 5.0 PocketPC Phone Emulator
 * 3. Click on the "Start" button to start the SMS Interceptor
 * 4. This application will peek at all SMS's received henceforth and process them
 *    if the SMS body is prefixed with the word "ASTRO"
 * 5. Valid format for getting prediction: ASTRO dd-mm
 * 6. Open the "Messages" in the PocketPC and create a new SMS, say, ASTRO 20-8
 *    (for 20th Aug) and send it to +14250010001, which is a fake number.
 *    Any Phone calls or SMS's to this number is a reference to the emulator itself.
 * 7. Once the SMS is sent, it appears in the list box. If it were to be an SMS
 *    without prefix "ASTRO", the application will leave it to be read by the user.
 * 8. This can be observed when the prediction is sent. This SMS lands in the Inbox.
 * 9. To stop the Message Interception, click the Stop button
 *
 * More reading info on SMS interception API in WM 5.0:
 * http://blogs.msdn.com/windowsmobile/archive/2005/07/09/437189.aspx
 * http://www.pcquest.com/content/search/showarticle1.asp?arid=75833&mode=disp
 *
 * Windows Mobile 5.0 PPT - TechEd
 * http://download.microsoft.com/download/9/f/a/9fadc29f-8df1-486f-b200-94f79ee7a7de/MED%20303%20New%20Managed%20APIs%20Controls,%20Messaging%20and%20Telephony.ppt
 *
 */

Posted on Monday, January 30, 2006 6:28 AM Windows Mobile | Back to top


Comments on this post: Windows Mobile 5.0 Message Interception

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Hi Gaurav
i have question

1.- this demo workin only in bluetooth, id or a normal frequency 900, 1800, 1900 mhz?

2.- this demo intercept any smarthphone o a normal cellular?

my email : romerofelipe2002@yahoo.com.mx


tanks.
Left by felipe romero on Nov 21, 2006 12:19 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
can this programme intercepts cell phone sms in Malaysia???
Left by keith on Jun 12, 2007 10:42 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Make sure you have VS 2005 and Windows Mobile 5.0 PocketPC SDK installed
* 2. Run the application and use the Windows Mobile 5.0 PocketPC Phone Emulator
* 3. Click on the "Start" button to start the SMS Interceptor
* 4. This application will peek at all SMS's received henceforth and process them
* if the SMS body is prefixed with the word "ASTRO"
* 5. Valid format for getting prediction: ASTRO dd-mm
* 6. Open the "Messages" in the PocketPC and create a new SMS, say, ASTRO 20-8
* (for 20th Aug) and send it to +14250010001, which is a fake number.
* Any Phone calls or SMS's to this number is a reference to the emulator itself.
* 7. Once the SMS is sent, it appears in the list box. If it were to be an SMS
* without prefix "ASTRO", the application will leave it to be read by the user.
* 8. This can be observed when the prediction is sent. This SMS lands in the Inbox.
* 9. To stop the Message Interception, click the Stop button
*
Left by ranjkar on Nov 15, 2007 1:17 PM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
for woching
Left by helsing on Mar 01, 2008 12:58 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Thanks for the nice article, but the download link does not worked for me,please send it to my email :ahcity@126.com ,thank you!
Left by bluefad on Mar 31, 2008 9:37 PM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
please i can not download the intercipt demo send it to me at this email husamqatami@hotmail.com

i need it really as fast as you can...

husam
Left by husam on Nov 15, 2008 2:26 PM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Can you please e-mail me the demo code too? My email is michael_fanou@hotmail.com

Thank you very much!
Left by Michalis on Nov 21, 2008 4:33 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
hey, is there you can send me the files, I need this for a school project. thanks so much
Left by download not working on Feb 20, 2010 1:42 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Folks, sorry I don't have the code with me anymore. Looks like it is misplaced. Will post an update in case I find it in my archives.
Left by Sunil Jagadish on Feb 20, 2010 2:49 AM

# re: Windows Mobile 5.0 Message Interception
Requesting Gravatar...
Hi,

What is the equivalent in Windows Phone 7? I'm writing an app, and sort of stuck at this point.

Regards

Dan.
Left by Dan Anos on Nov 25, 2010 11:29 AM

Your comment:
 (will show your gravatar)


Copyright © Sunil Jagadish | Powered by: GeeksWithBlogs.net