Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class GameActivity {
  2. int value;
  3. Button button;
  4. @Override
  5. protected void OnCreate(Bundle savedInstenceState) {
  6. super.onCreate(savedInstanceState);
  7. setContentView(R.layout.activity_game);
  8.  
  9. value = 1;
  10. button = (Button) findViewById(R.id.button);
  11. button.setOnClickListner(new View.OnClickListner() {
  12. @Override
  13. public void onClick(View view) {
  14. value++;
  15. }
  16. });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement