Loop sample drives app
Перейти к файлу
microsoft-github-policy-service[bot] 4e362ad7df
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-12 20:52:53 +00:00
Trips Update SampleAppApplication.java 2016-09-13 13:06:18 -07:00
gradle/wrapper migrate from trips app 2016-09-13 13:04:07 -07:00
.gitignore migrate from trips app 2016-09-13 13:04:07 -07:00
.travis.yml migrate from trips app 2016-09-13 13:04:07 -07:00
LICENSE.txt migrate from trips app 2016-09-13 13:04:07 -07:00
README.md Update README.md 2016-09-13 13:06:49 -07:00
SECURITY.md Microsoft mandatory file 2023-06-02 20:41:34 +00:00
build.gradle migrate from trips app 2016-09-13 13:04:07 -07:00
gradle.properties migrate from trips app 2016-09-13 13:04:07 -07:00
gradlew migrate from trips app 2016-09-13 13:04:07 -07:00
gradlew.bat migrate from trips app 2016-09-13 13:04:07 -07:00
lint.xml migrate from trips app 2016-09-13 13:04:07 -07:00
settings.gradle migrate from trips app 2016-09-13 13:04:07 -07:00

README.md

LOOP Sample Drives

Prerequisites:

  • Android 4.4+

Build instructions:

These instructions will get you a copy of the Location and Observation Platform (LOOP) sample app that will download and display trips.

  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. Add your appId and appToken in SampleAppApplication.java in the initializeLoopSDK() method
```
    String appId = "YOUR_APP_ID";
    String appToken = "YOUR_APP_TOKEN";
```
  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.