Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.android;
- import android.app.Activity;
- import android.content.Intent;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.Button;
- public class StudentInformationSystem extends Activity {
- Button btn;
- Button btnn;
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_welcome);
- btn = (Button) findViewById(R.id.btnRegistration);
- btnn = (Button) findViewById(R.id.btnLogin);
- btn.setOnClickListener(new View.OnClickListener() {
- public void onClick(View v) {
- openRegisterActivity();
- }
- });
- btnn.setOnClickListener(new View.OnClickListener() {
- public void onClick(View v) {
- openLoginActivity();
- }
- });
- }
- public void openRegisterActivity(){
- Intent intent = new Intent(this, RegisterActivity.class);
- startActivity(intent);
- }
- public void openLoginActivity(){
- Intent intent = new Intent(this, LoginActivity.class);
- startActivity(intent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement