Windows Phone 8 Emulator 仅返回 Redmond 位置 [英] Windows Phone 8 Emulator returning Redmond location only

查看:22
本文介绍了Windows Phone 8 Emulator 仅返回 Redmond 位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码

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

Geocoordinate myGeocoordinate = myGeoposition.Coordinate;

每次我以 Redmond 身份运行模拟器时,这是一个错误,如果是,那么我们如何摆脱它?

while running the simulator each time i get the location as Redmond, is this a bug, if yes then how can we get rid out of it?

推荐答案

有适用于 Windows Phone 模拟器(7.5 和 8)的位置传感器模拟器:如何测试使用 Windows Phone 位置数据的应用.

There is location sensor simulator available for Windows Phone emulator (both 7.5 and 8): How to test apps that use location data for Windows Phone.

看起来是这样的:

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

You can set current phone location to anything you want using that tool. IT also allows you to record paths and playing recorded paths.

要打开它,请单击其他工具按钮 - 模拟器工具栏中的最后一个.它在下面的照片上悬停为黄色.

To open it click Additional Tools button - the last one within emulator toolbar. It's hovered to yellow on photo below.

这篇关于Windows Phone 8 Emulator 仅返回 Redmond 位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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