Code Monkey home page Code Monkey logo

stepup's Introduction

StepUp

StepUp is an Android application which basically tracks steps of users. We wanted to encourage people to excercise. Unlike other pedometer apps which track steps of users and convert those steps into calories, our app converts the foods that users eat into steps and calories.

Team members:

  • Hai Phan
  • Bang Nguyen
  • Tehetena Behailu

Screenshots

Features

  • Scan for bluetooth device
  • Add food
  • Show list of food
  • Count steps
  • Count calories
  • Track steps in the background
  • UI Design follows Material Design

##Code example: We used BMI160 Accelerometer sensor to detect steps.

bmi160AccModule.enableStepDetection();
bmi160AccModule.start();
bmi160AccModule.readStepCounter(false);

bmi160AccModule.routeData().fromStepDetection().stream("step_detector").commit()
    .onComplete(new AsyncOperation.CompletionHandler<RouteManager>() {
        @Override
        public void success(RouteManager result) {
            result.subscribe("step_detector", new RouteManager.MessageHandler() {
                @Override
                public void process(Message msg) {
                    stepsTaken++;
                    calculateStepsLeft();
                    calculateCaloriesLeft();
                    setStepCount();
                    setCaloriesCount();
                }
            });
        }
});

##References:

stepup's People

Contributors

akzuki avatar titay2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

stepup'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.