CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

John Papa [MVP C#]

.NET Code Samples, Data Access, and Other Musings

Smartphone Skills: Part 02 - Setup and Device Emulators

In my last post (Smartphone Skills: Part 01 - Introduction) I ran through a few of the links that you can use to get started with Smartphone development. In this post I will discuss how to setup the .NET 2 development environment and use the Device Emulator Manager.

Assuming you already have Visual Studio.NET 2005 installed including the compact framework, the next steps are to download and install the rest of the tools you will need.

ActiveSync 4.1 (or latest version)

Download and install ActiveSync 4.1 if you have not already done so. ActiveSync is required by the Windows Mobile 5 SDK (next step). ActiveSync is used to synchronize the data and generally help you communicate with the mobile device. It also facilitates the installation of software from a PC to the device.

Windows Mobile 5.0 SDK for Smartphone 

Download the Windows Mobile 5.0 SDK for Smartphone and install it. This will give you all that you need to develop for the Smartphone. Make sure you download and install the Smartphone edition as there is also an edition for the Pocket PC available. Again, these are 2 different flavors of the Windows Mobile 5 OS. You can install both SDK’s if you intend to develop for both types of devices.

Once the SDK is installed, you will be able to create projects for the mobile devices. The SDK installs project templates that you can use to do this. The SDK also install the Device Emulator Manager, which gets added to your Tools menu in the Visual Studio.NET IDE. The Device Emulator Manager allows you to choose the destination device type that you want to test your application in. When you install the Smartphone SDK, several emulators are installed and show up in the available emulator list in the Device Emulator Manager including a versions for Smartphone 200 and Windows Mobile 5. When testing your application, you can select which emulator to run the app in. This is a great feature since it allows you to test the applications without installing software on a target device (and uninstalling, installing, repeat process … yuk). It also allows you to develop and test software for multiple target devices.

 

Custom Device Emulators

OK, so you bought a specific device and you want to make sure your application works in that specific device. Some manufacturers provide developers access to tools that help them develop software for their devices. Motorola provides a web site that has several tools and other information to assist developers. Since I recently bought a Motorola Q Smartphone, I went to their MotoDev web site and found the Motorola Q tools. On this page I downloaded the emulator for the 320x240 landscape screen (because the Q has a screen that is different from most Smartphones and PDA’s in that its screen is not square not portrait … it is landscape). This is actually a link to the Microsoft download site.

I then installed the emulator for the landscape screen. I could have stopped there as it would have given me what I needed to test the landscape UI, but I went one step further and downloaded and installed the Q plug-in for the landscape emulator. This plug-in adds an additional emulator to the Device Emulator Manager that looks just like the Motorola Q (similar to a skin). Of course, these custom emulators are not critical, you can sue the default ones that come with the Windows Mobile 5 SDK. Its just an extra step to make your emulator look and feel more like the target device. Its always a good idea to try your application’s code out in as many emulators as you are targeting devices.

Once you have have ActiveSync, the SDK and the emulators installed … you can start developing.

 

Smartphone Skills Series:


Published Jun 06 2006, 11:18 AM by John Papa
Filed under: ,

Comments

John Papa said:

By request ... I updated this post with some images of the device emulator manager as well as the Q plug-in.
# June 6, 2006 4:18 PM

dotnetkicks.com said:

Trackback from dotnetkicks.com
# June 6, 2006 4:20 PM

Bill said:

John:

Forgive me for being a dummy - but where can I grab the Q emulator?  Friggin awesome post.
# June 10, 2006 10:56 PM

John Papa said:

Bill .. The links in the post are hard to see :(

You need 2 files from these links to get the Q emulator to work:

1) http://www.microsoft.com/downloads/details.aspx?FamilyID=eb580a44-cb40-4be1-9ff3-e224bf669cd0&DisplayLang=en

2) http://developer.motorola.com/?path=1.2.6.29.366
# June 11, 2006 12:38 AM

John Papa [MVP C#] said:

So far in this series I have introduced the basics of Smartphone development and how to get setup with...
# June 25, 2006 10:24 PM

John Papa [MVP C#] said:

Introduction to the "Smartphone Skills" series regarding using, customizing and developing for the Windows Mobile 5 Smartphone.  In this introduction I discuss what the Smartphone OS is and is NOT, what tools are needed for developing smartphone
# June 25, 2006 10:34 PM

OTA-Qa said:

I tried the Q emulator download with the standalone emulator from Microsoft (see url), and it gave me an error that the Smartphone SDK was not installed.  

http://www.microsoft.com/downloads/details.aspx?FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&DisplayLang=en

Is there a workaround, or a version of the Q emulator that will work with this stand-alone version, and not require installation of VS?

I primarily need the emulator for batch app testing for this device.

# July 20, 2006 3:20 PM

John Papa said:

OTA-Qa ... Of that I am not aware. You are correct though, the emulator will only run if the SDK is installed.
# July 24, 2006 1:58 AM

Bobby Kolev said:

I have VS 2005 installed and I can target WM5 PPC and Smartphone, but the Q emulator above is still asking for an SDK to be installed.

The installer must be checking in the default target or something.

I'll post a workaround if I find one.

# September 22, 2006 11:18 AM

Balaji said:

Hello John - i stumbled upon this after reading your good article in MSDN. I searching for an emulator for Blackberry? is there one available? Thanks

# April 4, 2008 9:16 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About John Papa

John (C# MVP and MCSD.NET) has been working with Microsoft distributed architectures for over 10 years. He has enterprise experience architecting and developing with .NET technologies including ASP.NET as well as WebForms using both C# and VB.NET. He is a baseball fanatic who spends most of his summer nights rooting for the Yankees with his family and his faithful dog, Kadi. John has authored or co-authored several books on ADO, ADO.NET, XML, and SQL Server, is the author of the Data Points column in MSDN Magazine, has presented MSDN WebCasts and can often be found speaking at industry conferences such as VSLive and DevConnections. Check out Devlicio.us!