Answered by:
Steps Detector App in Windows RT

Question
-
Hi,
Recently I used the Lumia Sensor Core SDK for detecting user activity, like walking, ideal, steps calculation etc. Then I jumped into Windows RT app and tried to implement the same, but as the Lumia Sensor Core SDK doesn't support Windows RT it was very tough for me to get user steps. Then I did a small research and found that we can measure steps using device Accelerometer.
Could anyone put some light on this. It would be really great if someone could help me with a solution.
Appreciate you help
Somnath
- Moved by Rob Caplan [MSFT]Microsoft employee, Moderator Saturday, April 18, 2015 12:03 AM
Wednesday, April 15, 2015 7:09 PM
Answers
-
You posted in the Developing for Windows Phone forum so people naturally assumed you were talking about Windows Phone.
That said, the documentation I linked is good for Windows Runtime apps on phone and desktop. Without SensorCore (or a 3rd party library, but I don't know of any) there isn't a direct steps calculation. You'll need to write your own code to interpret the accelerometer data.
See Responding to motion and orientation sensors to get started.
- Proposed as answer by Jamles HezModerator Tuesday, April 28, 2015 12:36 PM
- Marked as answer by Jamles HezModerator Wednesday, April 29, 2015 1:57 PM
Saturday, April 18, 2015 12:03 AMModerator
All replies
-
There isn't a direct steps calculation. You'll need to write your own code to interpret the accelerometer data.
See Responding to motion and orientation sensors to get started.
Thursday, April 16, 2015 1:59 AMModerator -
I am confused by Sensor Core SDK does not work in Window RT. The walk through for the sensor core sdk clearly states to modify the Package.Appxmanifest which is only in the rt version of the phone projects
In order for an application to access the APIs, it needs to declare the SensorCore HID device and Location capability in its manifest. Installing the SDK automatically adds capabilities to Package.appxmanifest:
https://msdn.microsoft.com/en-us/library/dn932093.aspx
Thursday, April 16, 2015 4:20 PM -
I'm not particularly familiar with the Sensor Core SDK, so I just accepted Somnath's comment that Sensor Core didn't support Windows Phone RT apps and commented on using the accellerometer. Now that I'm on a dev machine I just gave it a try and it appears to load fine in a runtime app.
the Package.Appxmanifest which is only in the rt version of the phone projects
Package.Appxmanifest is used by Silverlight 8.1 apps as well.
Thursday, April 16, 2015 4:37 PMModerator -
Hi Friends,
There is a small confusion happened due to missing completed information about the requirement.
Yes, Lumia Sensor Core SDK works on Windows RT, but only for Windows Phone, not Tablet and Non-Lumia Devices.
What I am trying is to calculate Steps in Windows 8.1 Tablet (Non-Lumia device) using Windows RT. Now as Sensor Core SDK doesn't support Windows RT Tablet I was trying to find out an alternate way by using Accelerometer.
Hope this time its clear.
Thanks
Somnath
Friday, April 17, 2015 4:44 AM -
You posted in the Developing for Windows Phone forum so people naturally assumed you were talking about Windows Phone.
That said, the documentation I linked is good for Windows Runtime apps on phone and desktop. Without SensorCore (or a 3rd party library, but I don't know of any) there isn't a direct steps calculation. You'll need to write your own code to interpret the accelerometer data.
See Responding to motion and orientation sensors to get started.
- Proposed as answer by Jamles HezModerator Tuesday, April 28, 2015 12:36 PM
- Marked as answer by Jamles HezModerator Wednesday, April 29, 2015 1:57 PM
Saturday, April 18, 2015 12:03 AMModerator