-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain3Activity.java
More file actions
29 lines (21 loc) · 782 Bytes
/
Main3Activity.java
File metadata and controls
29 lines (21 loc) · 782 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
package com.example.covid_19;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class Main3Activity extends AppCompatActivity {
TextView t1,t2,t3;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
t1 = findViewById(R.id.received_name);
/*t2 = findViewById(R.id.received_place);
t3 = findViewById(R.id.received_number);*/
Intent i = getIntent();
String str = i.getStringExtra("Name");
String st1 = i.getStringExtra("Place");
int a = Integer.parseInt(i.getStringExtra("Number"));
t1.setText(str);
}
}