Created
September 18, 2017 08:32
-
-
Save JaniKibichi/1a9e0ba9df4fa49b84d9d0f897628830 to your computer and use it in GitHub Desktop.
Code for MainActivity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mjuaji.mathgame1155; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.view.WindowManager; | |
import android.widget.Button; | |
public class MainActivity extends Activity implements View.OnClickListener{ | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
final Button buttonPlay = (Button)findViewById(R.id.buttonPlay); | |
buttonPlay.setOnClickListener(this); | |
} | |
@Override | |
public void onClick(View view) { | |
Intent i; | |
i = new Intent(this, GameActivity.class); | |
startActivity(i); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment