我正在寻找Windows Phone模拟器附加工具使用的位置数据格式。在“位置”选项卡上,有保存/打开录制器数据的选项。我提出这个问题是因为需要模拟地理位置变化,但“位置”选项卡对我无效。作为解决方法,我将创建一个位置数据文件并在模拟器中打开它。
这是一个简单的XML文件,格式如下:
<?xml version="1.0" encoding="utf-8"?>
<WindowsPhoneEmulator xmlns="http://schemas.microsoft.com/WindowsPhoneEmulator/2009/08/SensorData">
<SensorData>
<Header version="1" />
<GpsData latitude="" longitude="" />
<GpsData latitude="" longitude="" />
<GpsData latitude="" longitude="" />
</SensorData>
</WindowsPhoneEmulator>
感谢 AppHub 论坛 (http://forums.create.msdn.com/forums/p/91880/550593.aspx) 上的 "Konaju Games" 用户提供的答案。