Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IdentityManager.getDefaultIdentityManager().getUserID(new IdentityHandler() {
- @Override
- public void onIdentityId(String identityId) {
- Log.d("SplashActivity", "Identity ID = " + identityId);
- // Use IdentityManager#getCachedUserID to
- // fetch the locally cached identity id.
- final String cachedIdentityId =
- IdentityManager.getDefaultIdentityManager().getCachedUserID();
- openMainActivity();
- }
- @Override
- public void handleError(Exception exception) {
- Log.d("SplashActivity", "Error in retrieving the identity" + exception);
- openLoginActivity();
- }
- });
Add Comment
Please, Sign In to add comment