jump to navigation

Smart Device Apps not smart yet on Vista April 28, 2007

Posted by suniljagadish in .NET CF, Windows Mobile.
2 comments

After hunting around for a way to get internet connectivity on my WM 5.0 PPC Emulator, I came across an informative thread on MSDN Forums. The two suggestions given there didn’t work for me. Unfortunately the PPC Emulator cannot be cradled in Vista’s Mobile Device Center yet, which is sad. When is a fix coming for this? I hope I won’t have to wait for Orcas. [Ref: VSD team blog]

Windows Mobile 5.0 Emulator and Webservice woes November 24, 2006

Posted by suniljagadish in .NET, Windows Mobile.
15 comments

Many people (including me) have faced the issue of connecting to a webservice from a Windows Mobile 5.0 emulator. The error generally encountered is- “Unable to connect to network”.

I was able to overcome this problem after learning from this post that I need to cradle1 the emulator and then deploy the application. Before you cradle the emulator, make sure you have a compatible version of ActiveSync running on your machine. Configure your ActiveSync to connect using DMA (because the intention is to connect to the emulator).

I used my desktop’s IP address (and not “localhost”, nor the machine name) to add the webreference (of the webserivce) in the mobile device project.

Rest of the steps in cradling the emulator is neatly laid out in this post.

Note:
1. To cradle your emulator, first connect to it using the Device Emulator Manager, only after which the “Cradle” option in the Actions menu will be enabled.

Interesting numbers in the Windows Mobile 5.0 Device Emulator February 6, 2006

Posted by suniljagadish in .NET CF, Old posts, Programming, Windows Mobile.
add a comment

Check out Barry Bond's post about a few numbers in the WM 5.0 Device Emulator that can be used to test busy numbers, never answer numbers etc.

Windows Mobile 5.0 Message Interception January 30, 2006

Posted by suniljagadish in .NET CF, Old posts, Programming, Windows Mobile.
4 comments

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
*
*/

I got mails from many people reporting a problem in downloading the code. So, I’ve uploaded it here – http://suniljagadish.googlepages.com/SMSInterception.zip