From 2662f2667eab628f0dc810fbfdddbc3c7f3fae35 Mon Sep 17 00:00:00 2001 From: Yin Yin Wu Date: Tue, 30 Aug 2016 15:23:55 -0700 Subject: [PATCH] initialize changes for analytics --- .../java/loop/ms/loophello/LoopHelloApplication.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/loop/ms/loophello/LoopHelloApplication.java b/app/src/main/java/loop/ms/loophello/LoopHelloApplication.java index cb8e65e..fcd5694 100644 --- a/app/src/main/java/loop/ms/loophello/LoopHelloApplication.java +++ b/app/src/main/java/loop/ms/loophello/LoopHelloApplication.java @@ -24,14 +24,13 @@ public class LoopHelloApplication extends Application implements ILoopSDKCallbac editor.putString(LOOP_SDK_STATE, "uninitialized"); editor.apply(); - // initialize the Loop SDK. create an account to get your appId and appToken + // create an account to get your appId and appToken String appId = "YOUR_APP_ID"; String appToken = "YOUR_APP_TOKEN"; - String userId = "YOUR_USER_ID"; - String deviceId = "YOUR_DEVICE_ID"; - - LoopSDK.initialize(this, appId, appToken, userId, deviceId); + // initialize the Loop SDK with your appId and appToken + // the last param enables location analytics + LoopSDK.initialize(getApplicationContext(), appId, appToken, true); } // called by the Loop SDK on successful initialization