Guest User

Untitled

a guest
May 20th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. IdentityManager.getDefaultIdentityManager().getUserID(new IdentityHandler() {
  2. @Override
  3. public void onIdentityId(String identityId) {
  4. Log.d("SplashActivity", "Identity ID = " + identityId);
  5.  
  6. // Use IdentityManager#getCachedUserID to
  7. // fetch the locally cached identity id.
  8. final String cachedIdentityId =
  9. IdentityManager.getDefaultIdentityManager().getCachedUserID();
  10. openMainActivity();
  11. }
  12.  
  13. @Override
  14. public void handleError(Exception exception) {
  15. Log.d("SplashActivity", "Error in retrieving the identity" + exception);
  16. openLoginActivity();
  17. }
  18. });
Add Comment
Please, Sign In to add comment