PrepAway - Latest Free Exam Questions & Answers

You need to capture device location events periodically to determine if a tip should be displayed

You are developing a Windows Store app for geocaching competitions that displays location-aware
tips.
You need to capture device location events periodically to determine if a tip should be displayed.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
Enable the Proximity capability in the Package.appxmanifest file.

B.
Create an instance of the Windows.Devices.Sensors.OrientationSensor class. Use the
Reportlnterval property to set the interval for getting the position data. Then attach an event
handler to the PositionChanged event to capture position and decide if tips should be shown.

C.
Create an instance of the Windows.Devices.Sensors.Gps class. Use the Reportlnterval property to
set the interval for getting the position data. Then attach an event handler to the PositionChanged
event to capture position and decide if tips should be shown.

D.
Enable the Location capability in the Package.appxmanifest file.

E.
Create an instance of the Windows.Devices.Geolocation.Geolocator class, Use the Reportlnterval
property to set the interval for getting the position data. Then attach an event handler to the
PositionChanged event to capture position and decideif tips should be shown.


Leave a Reply