Loop SDK sample hello app
Перейти к файлу
microsoft-github-policy-service[bot] 228e72a47f
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-27 13:07:28 +00:00
app add location permission dialog 2016-08-30 16:55:32 -07:00
gradle/wrapper initial commit 2016-06-20 15:21:51 -07:00
.gitignore initial commit 2016-06-20 15:21:51 -07:00
.travis.yml Update travis build properties for Android 2016-06-23 14:48:32 -07:00
LICENSE.txt initial commit 2016-06-20 15:21:51 -07:00
README.md Updated redme 2016-06-20 16:40:06 -07:00
SECURITY.md Microsoft mandatory file 2023-06-12 19:37:20 +00:00
build.gradle Updated build tool version, use develop version of sdk library 2016-07-07 17:27:59 -07:00
gradle.properties initial commit 2016-06-20 15:21:51 -07:00
gradlew initial commit 2016-06-20 15:21:51 -07:00
gradlew.bat initial commit 2016-06-20 15:21:51 -07:00
lint.xml Correct for Lint errors and warnings 2016-06-22 17:24:38 -07:00
settings.gradle initial commit 2016-06-20 15:21:51 -07:00

README.md

Loop Android Sample - Connecting to the Loop platform

These instructions will get you a copy of a Loop sample app that will send a test signal to the Loop platform.

  1. If you havent already, signup for a Loop account and create an app on the Loop Developer Site
  2. Get the sample app 0. Clone this sample app git clone https://github.com/Microsoft/Loop-Sample-Hello-Android.git 0. Open it in Android Studio 0. Add your appId and appToken in LoopHelloApplication.java OnCreate
```
    String appId = "YOUR_APP_ID";
    String appToken = "YOUR_APP_TOKEN";
```
  1. Create test users in your user dashboard (user link in the left navigation)
  2. Fill in the userId and deviceId in LoopTestUserApplication.java OnCreate with a test user's userId and deviceId obtained from the Loop Developer Site
```
    String userId = "YOUR_USER_ID";
    String deviceId = "YOUR_DEVICE_ID";
```
  1. Build and run the app

After this is done, you can create test signals to update the test profile. This is the same mechanism using test signals that the Loop uses when it creates home & work profiles.