我正在使用以下代码
Geolocator myGeolocator = new Geolocator
{
DesiredAccuracy = PositionAccuracy.High
};
Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync();
Geocoordinate myGeocoordinate = myGeoposition.Coordinate;
每次我获得雷德蒙德的位置时运行模拟器时,这是一个错误吗?如果是,那么我们如何摆脱它?
有可用于 Windows Phone 模拟器(7.5 和 8)的位置传感器模拟器:如何测试使用 Windows Phone 位置数据的应用程序.
看起来像这样:
![Windows Phone Emulator location simulator](https://i.stack.imgur.com/Arryw.png)
您可以使用该工具将当前手机位置设置为您想要的任何位置。它还允许您记录路径并播放记录的路径。
要打开它,请单击附加工具按钮 - 模拟器工具栏中的最后一个按钮。在下面的照片中它悬停为黄色。
![enter image description here](https://i.stack.imgur.com/G3Djp.jpg)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)