<

Windows Mobile Emulator and Internet Connectivity

Published on
16,409 Points
10,209 Views
2 Endorsements
Last Modified:
Approved
This article shows how to setup the internet connectivity on Windows Mobile Emulator.  

I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studio or as a standalone (there is a link down the bottom).

You can launch your emulator and see if Internet Explorer works on it. If it doesn't, you need to perform the following steps:

1. Microsoft Virtual PC 2007


For a "clean" testing environment Install Microsoft Virtual PC 2007. See Virtual PC at http://go.microsoft.com/fwlink/?LinkId=78095 It really does make it easier to change network setting and that type of thing without affecting your day-to-day configuration.

2. Launch Device Emulator Manager.


You can find "Device Emulator Manager..." in "Tool" menu.
 Picture 1. Launch Device Emulator Manager in VS 2005Click on the right mouse button will launch the manager.
 Picture 2. Device Emulator Manager.

3. Choose one of the emulators


For example, Windows Mobile 6 Classic, and start it by clicking on "Connect" item in the popup menu
 Picture 5.
Note.Another way to start device emulator from Visual Studio is through "Connect To Device" item in the "Tools" menu.
 Picture 3. "Connect To Device" menu item in VS 2005.In the device list (Picture 3) you need to pick one and press "Connect" button (Picture 4).
 Picture 4. "Connect To Device" list.

4. Setup the emulator configuration


File->Configuration
 Picture 6.and here choose the Network Tab
 Picture 7.

5. Check the first checkbox


Enable NE2000 PCMCIA network adapter and bind to:". The combo box shows "Connected network card"
 Picture 8.Press "Ok".

6. Open the device settings


Through Start menu->Settings in the emulator  
Picture 9.

7. Choose Tab Connections


Launch Connections  
Picture 10.Here choose the "Advanced" Tab  
Picture 11.

8. Select Network button


Picture 12.
shows Network Management settings  
Picture 13.

9. Setup Network


In the first combo box choose "My Work Network"  
Picture 14.Then press "Ok" till you get back to the main device screen.

10. For Windows Vista


In the Windows Mobile Center you need to find the Mobile Device Settings if you already set a partnership with a mobile device, you can click on its item when the device is disconnected. In this stage you will see the Windows Mobile Center Home page with one item in the middle "Mobile Device Settings"  
Picture 15.Under this item you can find "Connection Settings"  
Picture 16.

11. Setup Connection Settings


In this dialog you need to choose "DMA" in the first combo box  
Picture 17.

12. For Windows XP


If you have Windows XP and ActiveSync, the same settings dialog you can find in the menu "File->Connection Settings..." of the ActiveSync. Make this change when you don't have any device connected to your PC.

13. Choose Emulator


Now in Device Emulator Manager, select the running emulator, right mouse click calls the popup menu where you need to choose "Cradle" item
Picture 18.

14. Windows Mobile Center or ActiveSync


Will react automatically and you'll need to setup the partnership with the running emulator.

15. Launch IE


Now you can launch Internet Explorer on your emulator  
Picture 19.

16. To save an emulator's state


In the emulator's window, select  "File->Save State and Exit" in the main menu.

It is, probably, the simplest way to connect the device emulator with the internet.
You can find more information about the emulators in MSDN:
[url="http://msdn.microsoft.com/en-us/library/bb278114.aspx"Step by Step: Using Microsoft Device Emulator In-Depth in Your Application Development Experience[/url]
[url="http://www.microsoft.com/Downloads/details.aspx?familyid=A6F6ADAF-12E3-4B2F-A394-356E2C2FB114&displaylang=en" Download Device Emulator 3.0[/url]
[url="http://msdn.microsoft.com/en-us/library/aa188174.aspx" Device Emulator Reference Manual[/url]
2
Author:pgnatyuk
Ask questions about what you read
If you have a question about something within an article, you can receive help directly from the article author. Experts Exchange article authors are available to answer questions and further the discussion.
Get 7 days free