Tracks is Track Point Monitor API sample focusing on visualising the routes on
the screen.
Instructions
Learn about the Lumia SensorCore SDK from the Lumia Developer’s Library. The
example requires the Lumia SensorCore SDK’s NuGet package but will retrieve it
automatically (if missing) on first build.
To build the application you need to have Windows 8.1 and Windows Phone SDK 8.1
installed.
Using the Windows Phone 8.1 SDK:
Open the SLN file: File > Open Project, select the file tracks.sln
Remove the “AnyCPU” configuration (not supported by the Lumia SensorCore SDK)
or simply select ARM
Select the target ‘Device’.
Press F5 to build the project and run it on the device.
The core of this app’s implementation is in MapPage.xaml.Sensors.cs. We can get
the known track points from the TrackPointMonitor class by querying the
GetTrackPointsAsync method. The list will include all track points that the phone
has registered within the timespan provided.
The API is called through the CallSensorcoreApiAsync() helper function, which helps
handling the typical errors, like required features being disabled in the system
settings.
Required capabilities:
The SensorSore SDK (via its NuGet package) automatically inserts in the manifest
file the capabilities required for it to work:
Tracks
Tracks is Track Point Monitor API sample focusing on visualising the routes on the screen.
Learn about the Lumia SensorCore SDK from the Lumia Developer’s Library. The example requires the Lumia SensorCore SDK’s NuGet package but will retrieve it automatically (if missing) on first build.
To build the application you need to have Windows 8.1 and Windows Phone SDK 8.1 installed.
Using the Windows Phone 8.1 SDK:
tracks.slnPlease see the official documentation for deploying and testing applications on Windows Phone devices: http://msdn.microsoft.com/en-us/library/gg588378%28v=vs.92%29.aspx
Important files and classes:
The core of this app’s implementation is in MapPage.xaml.Sensors.cs. We can get the known track points from the TrackPointMonitor class by querying the GetTrackPointsAsync method. The list will include all track points that the phone has registered within the timespan provided.
The API is called through the CallSensorcoreApiAsync() helper function, which helps handling the typical errors, like required features being disabled in the system settings.
Required capabilities:
The SensorSore SDK (via its NuGet package) automatically inserts in the manifest file the capabilities required for it to work:
The projects listed below are exemplifying the usage of the SensorCore APIs