-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMain3Activity.java
More file actions
34 lines (31 loc) · 1.37 KB
/
Main3Activity.java
File metadata and controls
34 lines (31 loc) · 1.37 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
package com.example.android.docplusplus;
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.RadioGroup;
public class Main3Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
EditText otage = (EditText) findViewById(R.id.otage);
EditText otdate = (EditText) findViewById(R.id.otdate);
EditText otaddress = (EditText) findViewById(R.id.otaddress);
EditText otmobile = (EditText) findViewById(R.id.otmobile);
EditText hospid = (EditText) findViewById(R.id.hospid);
EditText editText = (EditText) findViewById(R.id.editText);
EditText othist = (EditText) findViewById(R.id.othist);
RadioGroup rg = (RadioGroup) findViewById(R.id.rg);
int checked = rg.getCheckedRadioButtonId();
Button otsignup = (Button) findViewById(R.id.otsignup);
otsignup.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Main3Activity.this,Main4Activity.class));
}
});
}
}