@Override protected void onResume() { super.onResume(); overridePendingTransition(R.anim.up_in, R.anim.up_out); String stringToken = Preferences.getAppToken(LoginActivity.this); // When we have token persisted just start FeedActivity if (stringToken != null && !TextUtils.isEmpty(stringToken)) { this.stringToken = stringToken; startFeedActivity(); } }
@Override public void onSuccess(Token token) { LoginActivity.this.stringToken = token.getToken(); Preferences.saveAppToken(stringToken, LoginActivity.this); startFeedActivity(); }