Merge pull request #9 from Microsoft/yin-init

initialize changes for analytics
This commit is contained in:
Shuaib Rasool 2016-08-30 15:38:58 -07:00 коммит произвёл GitHub
Родитель c3e50ee843 2662f2667e
Коммит 90fca42121
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