Windows Phone 8 Emulator仅返回Redmond位置

时间:2013-04-03 14:11:49

标签: windows-phone-8 windows-phone

我正在使用以下代码

Geolocator myGeolocator = new Geolocator
{
    DesiredAccuracy = PositionAccuracy.High
};
Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync();

Geocoordinate myGeocoordinate = myGeoposition.Coordinate;

每当我获得Redmond的位置时运行模拟器,这是一个错误,如果是,那么我们怎样才能摆脱它?

1 个答案:

答案 0 :(得分:4)

Windows Phone模拟器(7.5和8)都有位置传感器模拟器:How to test apps that use location data for Windows Phone

看起来像是:

Windows Phone Emulator location simulator

您可以使用该工具将当前手机位置设置为您想要的任何内容。 IT还允许您录制路径和播放录制的路径。

要打开它,请单击其他工具按钮 - 模拟器工具栏中的最后一个按钮。它在下面的照片中徘徊成黄色。

enter image description here