Android Open Source - GroupGoal Dispatch Activity

From Project

Back to project page GroupGoal.


The source code is released under:

GNU General Public License

If you think the Android project GroupGoal 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.cs121.groupgoal;
/*from  w ww .  j a  v  a 2 s .  c  o m*/
import android.content.Intent;
import android.os.Bundle;

import com.parse.ParseUser;

 * Activity which starts an intent for either the logged in (MainActivity) or logged out
 * (SignUpOrLoginActivity) activity.
public class DispatchActivity extends Activity {

  public DispatchActivity() {

  protected void onCreate(Bundle savedInstanceState) {
    // Check if there is current user info
    if (ParseUser.getCurrentUser() != null) {
      // Start an intent for the logged in activity
      startActivity(new Intent(this, MainActivity.class));
    } else {
      // Start and intent for the logged out activity
      startActivity(new Intent(this, WelcomeActivity.class));


Java Source Code List