Advertisement
alfiansyah

mainActivity.java

Feb 11th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1.  
  2.  
  3.     public void initialUISetup() {
  4.         cbapel = (CheckBox) findViewById(R.id.cbapel);
  5.         cbbelimbing = (CheckBox) findViewById(R.id.cbbelimbing);
  6.         cbmangga = (CheckBox) findViewById(R.id.cbmangga);
  7.         cbjeruk = (CheckBox) findViewById(R.id.cbjeruk);
  8.         cbtomat = (CheckBox) findViewById(R.id.cbtomat);
  9.         cbwortel = (CheckBox) findViewById(R.id.cbwortel);
  10.     }
  11.  
  12.  
  13.  
  14.     public void onClickButtonListener() {
  15.         btn1 = (Button) findViewById(R.id.btn1);
  16.         btn1.setOnClickListener(
  17.                 new View.OnClickListener() {
  18.                     @Override
  19.                     public void onClick(View v) {
  20.                         Intent intent = new Intent("com.example.lenovo_game.coba.Main2Activity");
  21.                         startActivity(intent);
  22.  
  23.  
  24.  
  25.  
  26.                     }
  27.                 }
  28.         );
  29.  
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement