Android Open Source - GroupGoal Welcome 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  www  .  ja  va  2  s . c om*/
import com.cs121.groupgoal.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

 * Activity which displays a registration screen to the user where they can either sign up for a new
 * account or login into an existing one.
public class WelcomeActivity extends Activity {

  protected void onCreate(Bundle savedInstanceState) {

    // Log in button click handler
    Button loginButton = (Button) findViewById(;
    loginButton.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {
        // Starts an intent of the log in activity
        startActivity(new Intent(WelcomeActivity.this, LoginActivity.class));

    // Sign up button click handler
    Button signupButton = (Button) findViewById(;
    signupButton.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {
        // Starts an intent for the sign up activity
        startActivity(new Intent(WelcomeActivity.this, SignUpActivity.class));

Java Source Code List