GithubHelp home page GithubHelp logo

microsoft / simpleactivity Goto Github PK

View Code? Open in Web Editor NEW
7.0 50.0 16.0 601 KB

SimpleActivity is a sample application which demonstrates the usage of the Activity Monitor API in Windows Phone 8.1. This application shows different activity types the user has performed during the current day. The user is able to see the activities from the last seven days as well zoom the activity graph by using the application bar buttons

C# 100.00%

simpleactivity's Introduction

SimpleActivity

SimpleActivity is a sample application which demonstrates the usage of the Activity Monitor API in Windows Phone 8.1. This application shows different activity types the user has performed during the current day. The user is able to see the activities from the last seven days as well zoom the activity graph by using the application bar buttons.

  1. 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:

  1. Open the SLN file: File > Open Project, select the file SimpleActivity.sln
  2. Remove the "AnyCPU" configuration (not supported by the Lumia SensorCore SDK) or simply select ARM
  3. Select the target 'Device'.
  4. Press F5 to build the project and run it on the device.

Alternatively you can also build the example for the emulator (x86) in which case the Activity Monitor will use simulated data (and no history is available with the default constructor used).

Please 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

  1. Implementation

The main functionality is in the MainPage.xaml.cs file, which demonstrates the usage of Activity Monitor API that is initialized (if supported).

The API is called through the CallSenseApiAsync() helper function, which helps handling the typical errors, like required features being disalbed in the system settings. In the Initialize() function is added compatibility check for devices that have different sensorCore SDK service.

UpdateScreenAsync() returns activity types that the user performed during the current day or the last seven days. Calling the GetActivityHistoryAsync() method will return a list of activities occured during each hour in the current day. The user is able to zoom the activity graph by using the application bar button.

  1. Version history

  • Version 1.1.0.0: The first release.
  1. Downloads

Project Release Download
SimpleActivities v1.1.0.0 simpleactivity-1.1.0.0.zip
  1. See also

The projects listed below are exemplifying the usage of the SensorCore APIs

simpleactivity's People

Contributors

satyambandarapu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simpleactivity's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.