-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain2Activity.java
More file actions
41 lines (35 loc) · 1.36 KB
/
Main2Activity.java
File metadata and controls
41 lines (35 loc) · 1.36 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
package com.example.hello.mytrack;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import static com.example.hello.mytrack.Main3Activity.username;
import static com.example.hello.mytrack.MainActivity.playerList;
public class Main2Activity extends AppCompatActivity {
int i;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
//final String s= playerList.get(1);
// final TextView textView=(TextView)findViewById(R.id.hello);
// textView.setText(s);
final EditText editText=(EditText)findViewById(R.id.x);
final EditText editText1=(EditText)findViewById(R.id.y);
Button button=(Button)findViewById(R.id.submit);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
for(i=0; i< username.size();i++)
{
if()
}
Intent intent=new Intent(Main2Activity.this,Main4Activity.class);
startActivity(intent);
}
});
}
}