Windows Mobile dev - Emulator network connection
Recently I've had to do a spot of Windows Mobile dev, part of which requires the mobile app to call a webservice, simple enough you may think. Well it is once you can figure out how to get the emulator to use the host network connection.
So here's how I got the emulator to use the host's network:
- Firstly, deploy your smart device project to the emulator as normal
- Once deployed, open the Device Emulator Manager in VS (Tools > Device Emulator Manager)
- You should see next to one of the types of emulator you can run, a little green arrow indicating this is the emulator currently running
- Right click on that emulator, and select 'Cradle'
- A bunch of ActiveSync (by the way you need ActiveSync) messages will pop up, just dismiss them. A guest partnership is all you need.
- ActiveSync will now treat the emulator as a real physical mobile device and give it access to the host's network access via a DMA channel.
- The Emulator should pop up with a notification to indicate it has network access
- Ensure if you're using a proxy, to set that information in the emulator's network settings
- You're done!
Comments
- Anonymous
August 13, 2008
PingBack from http://housesfunnywallpaper.cn/?p=690