Tag: Location Services
UnauthorizedAccessException or unhandled Exception when accessing Geolocator in Windows Phone
When using the Geolocator GetGeopositionAsync () method, it is necessary to handle the necessary exceptions that may arise based on various scenarios. One such scenario is the Location is disabled by the use in the Phone Settings. In this case, when the Geolocator’s GetGeopositionAsync() method is called, you will receive the UnauthorizedAccessException or unhandled Exception as shown below. “An exception of type ‘System.Exception’ occurred in…
How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?
Below is a sample code snippet that demonstrates how to programmatically check if the Location Services is turned On or Off in Windows Phone 8 . How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?