-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainActivity.java
More file actions
62 lines (50 loc) · 1.75 KB
/
MainActivity.java
File metadata and controls
62 lines (50 loc) · 1.75 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.example.easytune;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import martin.andy.easytunetuner.R;
public class MainActivity extends Activity {
Button PlayNote;
Button SelectTuning;
Button AutoTune;
Button d;
@Override
protected void onCreate(Bundle savedInstanceState) {
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
PlayNote = (Button)findViewById(R.id.PlayNote);
PlayNote.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent openPlayNote = new Intent(MainActivity.this, PlayNote.class);
startActivity(openPlayNote);
}
});
SelectTuning = (Button)findViewById(R.id.SelectTuning);
SelectTuning.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent openSelectTuning = new Intent(MainActivity.this, StandardTune.class);
startActivity(openSelectTuning);
}
});
AutoTune = (Button)findViewById(R.id.AutoTune);
AutoTune.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent openAutoTune = new Intent(MainActivity.this, AutoTune.class);
startActivity(openAutoTune);
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}