Windows Mobile Emulator and Internet Connectivity

AID: 1678
  • Status: Published

4810 points

  • Bypgnatyuk
  • TypeTips/Tricks
  • Posted on2009-10-01 at 07:40:29
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.
 

image-VS2005-DeviceEmulator.png
  • 32 KB
  • Picture 1. Launch Device Emulator Manager in VS 2005
Picture 1. Launch Device Emulator Manager in VS 2005


Click on the right mouse button will launch the manager.
 

image-DeviceEmulator.png
  • 28 KB
  • Picture 2. Device Emulator 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
 

image001.png
  • 57 KB
  • Picture 5.
Picture 5.




Note.Another way to start device emulator from Visual Studio is through "Connect To Device" item in the "Tools" menu.
 
image-ConnectToDevice.png
  • 33 KB
  • Picture 3. "Connect To Device" menu item in VS 2005.
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).
 
image-ConnectToDeviceMenu.png
  • 37 KB
  • Picture 4. "Connect To Device" list.
Picture 4. "Connect To Device" list.


4

Setup the emulator configuration


File->Configuration
 

image003.png
  • 163 KB
  • Picture 6.
Picture 6.


and here choose the Network Tab
 

image005.png
  • 103 KB
  • Picture 7.
Picture 7.




5

Check the first checkbox


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

image007.png
  • 105 KB
  • Picture 8.
Picture 8.


Press "Ok".



6

Open the device settings


Through Start menu->Settings in the emulator  

image009.png
  • 128 KB
  • Picture 9.
Picture 9.




7

Choose Tab Connections


Launch Connections  

image011.png
  • 86 KB
  • Picture 10.
Picture 10.


Here choose the "Advanced" Tab  

image013.png
  • 79 KB
  • Picture 11.
Picture 11.




8

Select Network button


image015.png
  • 76 KB
  • Picture 12.
Picture 12.


shows Network Management settings  

image017.png
  • 76 KB
  • Picture 13.
Picture 13.




9

Setup Network


In the first combo box choose "My Work Network"  

image019.png
  • 79 KB
  • Picture 14.
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"  

image021.png
  • 286 KB
  • Picture 15.
Picture 15.


Under this item you can find "Connection Settings"  

image023.png
  • 300 KB
  • Picture 16.
Picture 16.




11

   Setup Connection Settings


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

image025.png
  • 37 KB
  • Picture 17.
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

image027.png
  • 60 KB
  • Picture 18.
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  

image029.png
  • 87 KB
  • Picture 19.
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:
Step by Step: Using Microsoft Device Emulator In-Depth in Your Application Development Experience
Download Device Emulator 3.0
Device Emulator Reference Manual
    Asked On
    2009-10-01 at 07:40:29ID1678
    Tags

    Windows Mobile Emulator

    ,

    Internet

    Topic

    Windows MobileProgramming

    Views
    4209

    Comments

    Expert Comment

    by: Mikal613 on 2009-11-11 at 07:31:04ID: 5427

    On a non windows 7 environment its pretty much straight forward. How about adding some info for Windows 7.

    Heres a source:

    http://social.msdn.microsoft.com/Forums/en/microsoftdeviceemu/thread/1481b4d7-dc14-4089-8232-8fbb62bc80e5

    Author Comment

    by: pgnatyuk on 2009-11-11 at 07:52:04ID: 5428

    I checked the link you posted.
    I think now it works the same way on Vista too - just enable connection via DMA in WMDC.
    I'm not sure yet. I need a test on a clean computer.

    I've not switched to Windows 7- all my computers have a lot of diffrent dev tools installed.

    Expert Comment

    by: Mikal613 on 2009-11-11 at 08:00:19ID: 5429

    i have already done it with windows 7. Virtual pc 2007 cannot be installed on windows 7. Its a lengthy process.

    Expert Comment

    by: jinfeld on 2012-03-07 at 07:35:19ID: 44929

    I am trying to set up Pocket PC WM 5 emulator on an XP SPack3 box. Virtual PC 2007 SP1 is installed.
    In the emulator: File > Configure > Network
    When I check the box "Enable NE2000 PCMCIA network", it does not stay checked. It clears immediately after I close that screen. How do I get it to stick?
    Jerry

    Expert Comment

    by: Mikal613 on 2012-03-07 at 07:46:34ID: 44930

    Can you please open a Question for this?

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top Windows Mobile Experts

    1. Mikal613

      60,718

      Master

      0 points yesterday

      Profile
      Rank: Genius
    2. hjgode

      46,700

      0 points yesterday

      Profile
      Rank: Guru
    3. alexey_gusev

      11,876

      0 points yesterday

      Profile
      Rank: Genius
    4. CodeCruiser

      7,400

      0 points yesterday

      Profile
      Rank: Genius
    5. ambience

      2,800

      0 points yesterday

      Profile
      Rank: Sage
    6. AndyAinscow

      2,000

      0 points yesterday

      Profile
      Rank: Genius
    7. sasllc

      2,000

      0 points yesterday

      Profile
    8. Programmer-x

      2,000

      0 points yesterday

      Profile
      Rank: Guru
    9. Nigel_R

      2,000

      0 points yesterday

      Profile
    10. ve3ofa

      2,000

      0 points yesterday

      Profile
      Rank: Genius
    11. mkline71

      2,000

      0 points yesterday

      Profile
      Rank: Genius
    12. nepaluz

      2,000

      0 points yesterday

      Profile
      Rank: Sage
    13. acbrown2010

      2,000

      0 points yesterday

      Profile
      Rank: Genius
    14. Jamielive2011

      2,000

      0 points yesterday

      Profile
      Rank: Master
    15. TheLearnedOne

      1,800

      0 points yesterday

      Profile
      Rank: Savant
    16. athomsfere

      1,800

      0 points yesterday

      Profile
      Rank: Wizard
    17. minhvc

      1,500

      0 points yesterday

      Profile
      Rank: Wizard
    18. demazter

      1,500

      0 points yesterday

      Profile
      Rank: Genius
    19. degaray

      1,500

      0 points yesterday

      Profile
    20. Bardobrave

      1,500

      0 points yesterday

      Profile
      Rank: Sage
    21. dj_alik

      1,500

      0 points yesterday

      Profile
      Rank: Sage
    22. jason1178

      1,400

      0 points yesterday

      Profile
      Rank: Genius
    23. alanhardisty

      1,350

      0 points yesterday

      Profile
      Rank: Genius
    24. pgnatyuk

      1,250

      0 points yesterday

      Profile
      Rank: Genius
    25. dons6718

      1,000

      0 points yesterday

      Profile
      Rank: Sage

    Hall Of Fame