开发者

GeoCoordinateWatcher Permission when attached to a Desktop running Vista

I am creating a basic WindowsPhone7 app that uses the GeoCoordinateWatcher class - I base开发者_C百科d my app on the example found here. I notice that when I keep the phone attached to my Vista machine for debugging, the Permission property returns false. The MSDN page has this blurb:

On Windows 7 Starter Edition, the only supported location provider is the Default Location Provider in Control Panel, and an add-in must be installed to specify latitude and longitude.

How can I enable my Vista machine to prove Lat and long? Also - why is the desktop providing the coordinates and not the Win Phone?


Right below the blurb you reference is this note:

Note In versions of Windows prior to Windows 7, the following conditions apply:

All System.Device.Location objects that have constructors can be created, but the Status >property will always have the value Disabled.

The location indicated by the Location property of Position will always be Unknown.

No location events will be raised.

I don't think you'll be able to get Vista to provide Lat/Long.

As to why your phone isn't providing the coordinates, make sure you are using

GeoCoordinateAccuracy.High

That will ensure you're using the phone GPS.


I got the answer from APP HUB Here. I needed the ID_CAP_LOCATION tag in my manifest

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜