You need to handle the error that results when the app calls the GetGeopositionAsync() method

You are developing a Windows Store app that requires access to a user’s location.
A user denies the app access to the location service.
You need to handle the error that results when the app calls the GetGeopositionAsync() method.
What should you do?

You are developing a Windows Store app that requires access to a user’s location.
A user denies the app access to the location service.
You need to handle the error that results when the app calls the GetGeopositionAsync() method.
What should you do?

A.
Modify the app manifest to enable Location services and query the user.

B.
Display an interface for the user to enable location and rerun the method.

C.
Catch the exception using a try-catch statement.

D.
Modify the app.config file to enable Location services and query the user.

E.
Catch the exception using a try-catch async statement.

Explanation:
http://msdn.microsoft.com/en-us/library/system.exception(v=vs.110).aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *