Back to project page class_board_app.
The source code is released under:
GNU General Public License
If you think the Android project class_board_app 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.parse.starter; //w ww .jav a 2 s . c o m 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; /** * Activity which displays a registration screen to the user. */ public class SignUpOrLogInActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up_or_log_in); // Log in button click handler ((Button) findViewById(R.id.logInButton)).setOnClickListener(new OnClickListener() { public void onClick(View v) { // Starts an intent of the log in activity startActivity(new Intent(SignUpOrLogInActivity.this, LoginActivity.class)); } }); // Sign up button click handler ((Button) findViewById(R.id.signUpButton)).setOnClickListener(new OnClickListener() { public void onClick(View v) { // Starts an intent for the sign up activity startActivity(new Intent(SignUpOrLogInActivity.this, SignUpActivity.class)); } }); } }