Back to project page robobook.
The source code is released under:
MIT License
If you think the Android project robobook 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.krazyrobot.robobook.activity; //ww w . j a v a 2s . co m import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.View; import com.krazyrobot.robobook.R; public class WelcomeActivity extends ActionBarActivity { private View mLoginButton; private View mSignButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_welcome); mLoginButton = findViewById(R.id.login_button); mLoginButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(WelcomeActivity.this, LoginActivity.class)); } }); mSignButton = findViewById(R.id.signin_button); mSignButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(WelcomeActivity.this, RegistrationActivity.class)); } }); } }