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.
package com.alwaysallthetime.cloudpaste; /* w ww.ja v a2 s . c o m*/ import android.app.Activity; import android.content.Intent; import com.alwaysallthetime.adnlib.data.Token; 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); ConfigurationUtility.updateConfiguration(CloudPasteADNClient.getInstance()); Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); } }