-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntro.java
More file actions
30 lines (23 loc) · 730 Bytes
/
Intro.java
File metadata and controls
30 lines (23 loc) · 730 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
package app.compcoloridentifier;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import app.compcoloridentifier.R;
public class Intro extends Activity implements OnClickListener {
Button startApp;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.intro);
startApp = (Button)findViewById(R.id.bStartApp);
startApp.setOnClickListener(this);
}
@Override
public void onClick(View v) {
Intent openMenu = new Intent("app.compcoloridentifier.MENU");
startActivity(openMenu); // needs an Intent
}
}