Coder Social home page Coder Social logo

loop-sample-trips-android's Introduction

Trip Tracker

Trip Tracker, a Microsoft Garage project, that automatically records your drives, runs, walks, and bike rides. Trip Tracker is built with Microsoft's Location and Observation Platform. You can fork this project and build your own location tracking app.

Prerequisites:

  • Android 4.4+

Build instructions:

  1. Signup for a Loop account and create an app on the Loop Developer Site

  2. Get the sample app 0. Clone this sample app https://github.com/Microsoft/Loop-Sample-Trips-Android.git 0. Open it in Android Studio 0. Update appId and app token in gradle

    -TRIPTRACKER_APP_ID_PROP=

    -TRIPTRACKER_APP_TOKEN_PROP=

    In the code 'SampleAppApplication.java initializeLoopSDK()' appId and token will be referenced as

     String appId = BuildConfig.APP_ID;
     String appToken = BuildConfig.APP_TOKEN;
    
0. Get a google maps API key and update it TRIPTRACKER_APP_MAPS_KEY_PROP in [gradle](gradle.properties)
0. (Optional) Update loggly, ACRA and mixpanel related keys in [gradle](gradle.properties)
  1. Create test users in the user dashboard at the LOOP Developer Site
  2. Fill in the userId and deviceId in SampleAppApplication.java initializeLoopSDK() with a test user's userId and deviceId obtained from the Loop Developer Site
```
    String userId = "TEST_USER_USER_ID";
    String deviceId = "TEST_USER_DEVICE_ID"
    LoopSDK.initialize(this, appId, appToken, userId, deviceId);
```
  1. (optional) If you don't require a specific userId and deviceId, skip the previous step. Instead, initialize the SDK with the following:
```
    LoopSDK.initialize(this, appId, appToken);
```
  1. Build and run the app

After the app runs for a while you will see your user's trips and drives. This should only take a few hours but no longer than 24 hours as you move between locations.

Privacy

Information regarding privacy can be found in the privacy.md.

License

This source code is provided under the MIT License.


The Microsoft Garage is an outlet for experimental projects for you to try. Learn more at http://garage.microsoft.com.

loop-sample-trips-android's People

Contributors

microsoft-github-policy-service[bot] avatar srasool avatar

Stargazers

 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

Watchers

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

loop-sample-trips-android'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.