How to get the current Latitude and Longitude values of the emulator device in WP7?

1.4k Views Asked by At

Is there an option to find the location of the Emulator? I just need to plot the location of the device in the map.

2

There are 2 best solutions below

11
Claus Jørgensen On BEST ANSWER

The emulator have had a build-in GPS simulator since May. Hopefully you updated your SDK since then (otherwise you should!). (Yes, you can use the new emulator with the 7.0 SDK and 7.0 apps!)

To access it, hover the mouse over the emulator, and click the >> button to the right.

enter image description here

Then press the Location tab, and voila, you can set the position with the build-in simulator.

enter image description here

0
Naga Harish M On

we have to use static values for Emulator check with this URL http://timheuer.com/blog/archive/2010/03/22/geo-location-services-in-windows-phone-7-developer-emulator.aspx

we can use Windows Phone GPS Emulator (a small WPF application) check more details here http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/01/28/windows-phone-gps-emulator.aspx

enter image description here