Windows Phone 7仿真器位置数据格式 [英] Windows Phone 7 Emulator Location Data Format

查看:166
本文介绍了Windows Phone 7仿真器位置数据格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Windowws Phone Emulator附加工具使用的位置数据格式。在位置选项卡上,可以选择保存/打开记录器数据。我问这个问题,因为我需要模拟地理位置更改,但位置选项卡不适用于我。作为一种解决方法,我将创建一个位置数据文件,并在模拟器中打开它。

解决方案

这是一个简单的XML文件,格式如下:

 <?xml version =1.0encoding =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论坛上回复Konaju Games用户的感谢(http://forums.create.msdn .com / forums / p / 91880 / 550593.aspx)

I am looking for a format of the location data used by the Windowws Phone Emulator Additional Tools. On the tab "Location" there is an option to save/open recorder data. I ask this question because I need simulate geo position change but Location Tab doesn't work for me. As a workaround I am going to create a file of the location data and open it in the emulator.

解决方案

It's a simple XML file in this format:

<?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> 

Answered thanks to "Konaju Games" user at AppHub forum (http://forums.create.msdn.com/forums/p/91880/550593.aspx)

这篇关于Windows Phone 7仿真器位置数据格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆