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.
- Android 4.4+
-
Signup for a Loop account and create an app on the Loop Developer Site
-
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)
- Create test users in the user dashboard at the LOOP Developer Site
- 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);
```
- (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);
```
- 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.
Information regarding privacy can be found in the privacy.md.
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.