Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BeginScreen extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.begin_screen);
- Button btn_play = (Button) findViewById(R.id.btnPlay);
- btn_play.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- // TODO Auto-generated method stub
- Intent i = new Intent(getApplicationContext(), MainActivity.class);
- startActivity(i);
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement