Android Open Source - Checkers Welcome Activity






From Project

Back to project page Checkers.

License

The source code is released under:

Apache License

If you think the Android project Checkers 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.parse.starter;
// w w  w  . ja  v  a2s  . c o  m
import com.parse.ParseUser;

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

public class WelcomeActivity extends Activity implements OnClickListener {

  Button signUp, login;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.openscreen);
    
    ParseUser currentUser = ParseUser.getCurrentUser();
    if( currentUser != null ){
      Intent myIntent = new Intent( this, ParseStarterProjectActivity.class);
            startActivityForResult(myIntent, 0);
            finish();
    }
    
    login = (Button)findViewById(R.id.loginButton3);
    signUp = (Button)findViewById(R.id.signUpButton3);
    
    login.setOnClickListener(this);
    signUp.setOnClickListener(this);
    
  }

  @Override
  public void onClick(View v) {
    if( v.getId() == R.id.loginButton3 ){
      Intent myIntent = new Intent( WelcomeActivity.this, LoginActivity.class);
            startActivityForResult(myIntent, 0);
    }
    else{
      Intent myIntent = new Intent( WelcomeActivity.this, SignUpActivity.class);
            startActivityForResult(myIntent, 0);
    }
    
  }
  
  

}




Java Source Code List

com.parse.starter.GameActivity.java
com.parse.starter.Game.java
com.parse.starter.LoginActivity.java
com.parse.starter.MultiPlayer.java
com.parse.starter.ParseApplication.java
com.parse.starter.ParseStarterProjectActivity.java
com.parse.starter.SignUpActivity.java
com.parse.starter.WelcomeActivity.java