@Override public void onBackPressed() { if (notepriseFragmentManager != null && notepriseFragmentManager.onBackPressed()) { return; } super.onBackPressed(); }
@Override public void handleSalesforceLoginComplete() { super.handleSalesforceLoginComplete(); if (salesforceLoginUtility != null && salesforceLoginUtility.salesforceRestClient != null) { loggedInSalesforce = Boolean.TRUE; salesforceRestClient = salesforceLoginUtility.salesforceRestClient; checkButtons(); } }
@Override protected void onStart() { super.onStart(); if (noteprisePreferences.isSignedInToEvernote()) { setupEvernoteSession(); if (evernoteSession != null && evernoteSession.isLoggedIn()) { handleEvernoteLoginComplete(); } } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FragmentManager.enableDebugLogging(Boolean.FALSE); if (android.os.Build.VERSION.SDK_INT > 9) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitNetwork().build(); StrictMode.setThreadPolicy(policy); } setUpWelcomeScreen(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.welcome_screen_layout); FragmentManager.enableDebugLogging(Boolean.FALSE); if (android.os.Build.VERSION.SDK_INT > 9) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitNetwork().build(); StrictMode.setThreadPolicy(policy); } evernoteLoginButton = (Button) findViewById(R.id.evernote_login_button); evernoteLoginButton.setOnClickListener(this); }
@Override protected void onResume() { super.onResume(); doSalesforceLoginCheck(); checkButtons(); if (isEvernoteAuthenticationComplete() && authenticationStarted) { // hideFullScreenProgresIndicator(); authenticationStarted = false; noteprisePreferences.saveEvernoteAuthToken(evernoteSession.getAuthToken()); AuthenticationResult authResult = evernoteSession.getAuthenticationResult(); noteprisePreferences.saveEvetnoteNoteStoreUrl(authResult.getNoteStoreUrl()); noteprisePreferences.saveEvernoteWebApiPrefix(authResult.getWebApiUrlPrefix()); noteprisePreferences.saveEvetnoteUserId(authResult.getUserId()); noteprisePreferences.saveSignedInToEvernote(evernoteSession.isLoggedIn()); handleEvernoteLoginComplete(); } }
@Override public void doTaskInBackground() { super.doTaskInBackground(); startEvernoteAuthentication(); }