|
YOUR FEEDBACK
|
TOP MICROSOFT .NET LINKS Feature The Microsoft Device Emulator
A great productivity tool for Windows Mobile and Windows CE developers
By: Amit Chopra
Dec. 20, 2006 08:30 PM
Anyone who develops applications for devices can vouch for the importance of having a powerful emulator that can help accelerate the overall development and debugging process. This articles talks about the new Microsoft Device Emulator and how you can exploit some of its capabilities and make yourself a more productive Windows Mobile and Embedded developer.
As mentioned above, installing Visual Studio 2005 will install Microsoft Device Emulator 1.0, however, if you wish to use only the Device Emulator, you can download it from the Microsoft Download Center. The download page is www.microsoft.com/downloads. At the time this article was written, Microsoft Device Emulator Version 2.0 was available as a Community Technology preview download and would be shipping as part of the Windows Embedded CE 6.0 release within a couple of weeks. I highly encourage you to use the Version 2.0, as it not only enhances emulation performance significantly, but also adds many new emulation capabilities. The download details for Version 2.0 can be found at www.microsoft.com/downloads/details.aspx?familyid= 13F5DE85-30CD-4506-9C5B-A2068FA1EE9E&displaylang=en.
It's a No-Touch Install For example, host a demo.bat file on your server: http://mydemoserver/emulator/demo.bat Then in the demo.bat, include something like this: \\mydemoserver\emulator\deviceemulator.exe /s <filesname>.dess When clicking on the link (The .BAT File) from a client machine, the emulator and the image would load on the client without any installation requirement.
Emulating ARM Instructions. So What's the Benefit? The third benefit you get as a developer is indirect. It actually benefits the consumer of your application because now if they want to try your application without risking their device, they can run the application binaries on the emulator to experience your application. With high fidelity emulation of sounds and graphics, many apps will work just as well on the emulator. Unless you are using some specific features of the device such as a camera, you can expect your application to work without any issues on the emulator. Figure 1 has a screenshot of "The Age of Empires" running inside the Microsoft Device Emulator. I have also successfully installed and used products like Microsoft Voice command to talk to my emulator. In the next few sections, I will show you how easy it is to install an application on the device emulator using its capabilities to cradle with Active Sync.
ActiveSync Synchronization - It's Just Like a Device! To cradle the emulator with ActiveSync, here is what is needed:
Where Is the Store Card? The shared folder will show up as a Storage Card, (see Figure 4), when using the Files Manager. You can even install Device Applications on it when prompted during the install phase. I have also used this feature to run Power Point files that were actually on my PC but rendered by Power Point on the Emulator. It is also interesting to observe that the emulator rotates automatically to show the presentation just like a real device would. Another benefit of this feature comes in handy when you are building applications that require a large amount of static data (say a large SQL Mobile Database) that needs to be deployed as part of your application. In this case, you can put it in a Folder on your hard disk, share that folder with the emulator, then have your application access this data from the storage card, saving lots of time by deploying big files to the emulator.
Using the Command Line to Launch Emulator Images In case of a standalone emulator (when you don't have a Data Store on that machine) you can launch any device emulator image using the command line as well. When you start the emulator from the command line, almost every aspect of the device emulator can also be configured using the command line. The simplest way to run a device emulator image would be to pass the name of the .bin file which is the emulator image file to DeviceEmulator.exe. For Example, running the following will launch the Pocket PC 2003 Second Edition VGA Emulator: DeviceEmulator.exe PPC_2003_SE_VGA_WWE_ARMv4.bin While some of these images are installed with Visual Studio 2005 or the Windows Mobile SDKs, you can also download and install standalone images from the following location: http://msdn.microsoft.com/windowsmobile/downloads/tools/install/default.aspx When launching the emulator from the command line you can also specify to that emulator image how much memory you want to emulate by using /memsize parameter. Therefore, you can try your application in a variety of memory settings with ease.
My ALT+TAB Is Not Working and I Can't Take a Screenshot of the Emulator. Why? Well, no it is not a bug. It is how the emulator handles "Host Keys." If you look at the properties of the emulator (File->Configure), you will see that the host Key is set to Right Alt. Hence, if you want to take a screen shot of the emulator just use the RIGHT ALT Key along with the Print Screen button, or you can change the Host Key to Left Alt, which would cause things to work as expected. The host key allows you to use the keyboard for the development computer to control certain emulator actions, such as displaying its shortcut menu and predefining key combinations for operations such as shutdown, displaying file menu, and shortcut menus. MICROSOFT .NET LATEST STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING NEWS FROM THE WIRES
|
|||||||||||||||||||||||||||||||||||