-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLaunchActivity.java
More file actions
41 lines (30 loc) · 878 Bytes
/
LaunchActivity.java
File metadata and controls
41 lines (30 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.tic.tac.toe;
import android.app.Activity;
import android.os.Bundle;
import android.view.View.OnClickListener;
import android.view.View;
import android.content.Intent;
public class LaunchActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
// TODO: Implement this method
super.onCreate(savedInstanceState);
setContentView(R.layout.launch);
findViewById(R.id.launchButtonPlayer).setOnClickListener(new OnClickListener(){
@Override
public void onClick(View p1)
{
startActivity(new Intent(getApplicationContext(),PlayerActivity.class));
}
});
findViewById(R.id.launchButtonComputer).setOnClickListener(new OnClickListener(){
@Override
public void onClick(View p1)
{
startActivity(new Intent(getApplicationContext(),ComputerActivity.class));
}
});
}
}