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; /*from w w w . j av a 2 s . co m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.alwaysallthetime.messagebeast.ADNSharedPreferences; public class LaunchActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = null; if(ADNSharedPreferences.isLoggedIn()) { intent = new Intent(this, MainActivity.class); } else { intent = new Intent(this, LoginWebViewActivity.class); } intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION); startActivity(intent); overridePendingTransition(0, 0); } }