Connect Visual Studio Device Emulator Manager


The Device Emulator Manager in Visual Studio is a great tool to test your mobile applications. 

There are a couple of ways to connect to the devices inside the Device Emulator Manager.  Here is how to connect using Microsoft’s ActiveSync.  ActiveSync basically allows you to connect your phones to your PC to synchronize data between the two.  Since the devices in the Device Emulator manager mimic hardware mobile devices, you can use ActiveSync to talk to them just like how you would with a regular phone.

1)  If you don’t have Microsoft ActiveSync installed you can download it from:

http://www.microsoft.com/windowsmobile/en-us/help/synchronize/activesync-download.mspx

2) Open Microsoft ActiveSync (it will look something like this):

DeviceEmulator3

3)  in Visual Studio, find the Device Emulator Manager under Tools:

DeviceEmulator1

4) Open the Device Emulator Manager:

DeviceEmulator2

5) Right click on one of the Mobile devices and select Connect:

DeviceEmulator4

6) A window will open with a replica of the device you selected.  You can actually click on the device’s buttons and perform actions like if it was the real physical device.

DeviceEmulator5

7) However, if you navigate to Internet Explorer in the device and try to browse you will notice it is not connected (This is where you can use ActiveSync to use your PC to connect the device):

DeviceEmulator6

8) In order to connect the device to Active Sync, right click on the device and select Cradle:

image

9) ActiveSync will recognize the device and will display a Wizard to connect to it:

DeviceEmulator8

10) Follow and complete the wizard.  The ActiveSync window should say Connected:

DeviceEmulator9

11) Now that your device is connected to ActiveSync, you should be able to browse to any URL (including your test URL or localhost):

DeviceEmulator10

12) To disconnect your device, right click on your device in the Device Emulator Manager and select Uncradle and/or Shutdown:

DeviceEmulator11

No comments:

Post a Comment