initialize changes for analytics

This commit is contained in:
Yin Yin Wu 2016-08-30 15:23:55 -07:00
Родитель c3e50ee843
Коммит 2662f2667e
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -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