Windows Phone 8 Emulator returning Redmond location only

心不动则不痛 提交于 2020-01-11 12:21:13

问题


I am using the following code

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

Geocoordinate myGeocoordinate = myGeoposition.Coordinate;

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?


回答1:


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 looks like that:

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.



来源:https://stackoverflow.com/questions/15789766/windows-phone-8-emulator-returning-redmond-location-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!