Android Open Source - CloudPaste-Android Base Login Activity

From Project

Back to project page CloudPaste-Android.


The source code is released under:

MIT License

If you think the Android project CloudPaste-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.alwaysallthetime.cloudpaste;
/*  w ww.ja v  a2  s .  c  o  m*/
import android.content.Intent;

import com.alwaysallthetime.cloudpaste.client.CloudPasteADNClient;
import com.alwaysallthetime.messagebeast.ADNSharedPreferences;
import com.alwaysallthetime.messagebeast.ConfigurationUtility;

public abstract class BaseLoginActivity extends Activity {

    protected void onTokenObtained(String accessToken, Token token) {
        ADNSharedPreferences.saveCredentials(accessToken, token);
        Intent intent = new Intent(this, MainActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);

Java Source Code List