Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package com.example.dnb;
  2.  
  3. import android.content.Intent;
  4. import android.support.v7.app.AppCompatActivity;
  5. import android.os.Bundle;
  6. import android.view.View;
  7. import android.widget.Button;
  8.  
  9. public class Main2Activity extends AppCompatActivity {
  10.  
  11. Button signUp;
  12.  
  13. @Override
  14. protected void onCreate(Bundle savedInstanceState) {
  15. super.onCreate(savedInstanceState);
  16. setContentView(R.layout.dnb_sign_up_screen);
  17.  
  18. signUp = findViewById(R.id.sign_up);
  19. signUp.setOnClickListener(new View.OnClickListener() {
  20. @Override
  21. public void onClick(View v) {
  22.  
  23. // going to the next screen
  24.  
  25. Intent nextScreen;
  26. nextScreen = new Intent(Main2Activity.this, Main3Activity.class);
  27.  
  28. startActivity(nextScreen);
  29. }
  30. });
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement