Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GameActivity {
- int value;
- Button button;
- @Override
- protected void OnCreate(Bundle savedInstenceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_game);
- value = 1;
- button = (Button) findViewById(R.id.button);
- button.setOnClickListner(new View.OnClickListner() {
- @Override
- public void onClick(View view) {
- value++;
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement