,

Testing Apps That Use the Geolocator

The Windows Phone emulator includes a tool for simulating location tracking, which can be accessed by clicking the Additional Tools button on the emulator menu (this was shown in Figure 16.2), and then selecting the Location tab on the Additional Tools windows.

The location simulator works in two modes: a live mode that allows you to interact with the map to send location data to the emulator as soon as you click on the map and a playback mode that causes the location simulator to step through a sequence of map points, which you enter by clicking on the map (see Figure 17.5).

Image

FIGURE 17.5 Location simulator.

Map points can be saved to a file and loaded again at a later time.


Note

The Play button is enabled only when the Live button is toggled off.


When using the location simulator, any Geolocator instances in your app respond as though they are receiving actual location data, giving you the opportunity to test your app’s geo location features.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.124.143