Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. public class thirdScreen extends Activity {
  2.  
  3.  
  4.  
  5. @Override
  6.     protected void onCreate(Bundle savedInstanceState) {
  7.         super.onCreate(savedInstanceState);
  8.         setContentView(R.layout.activity_third_screen);
  9.         setupUI();
  10.         init();
  11.     }
  12.  
  13.     public void init(){
  14.  
  15.         next= (Button)findViewById(R.id.next);
  16.         next.setOnClickListener(new View.OnClickListener() {
  17.             @Override
  18.             public void onClick(View v) {
  19.  
  20.                 Intent app = new Intent(thirdScreen.this,thirdScreen.class);
  21.                 startActivity(app);
  22.             }
  23.         });
  24.  
  25.  
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement