Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Trip Tracker, a Microsoft Garage project, that automatically detects trips as you move around

License

Notifications You must be signed in to change notification settings

microsoft/Loop-Sample-Trips-Android

Repository files navigation

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.

About

Trip Tracker, a Microsoft Garage project, that automatically detects trips as you move around

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages