SecondActivity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.example.helloworld; import android.os.Bundle; import android.util.Log; import androidx.appcompat.app.AppCompatActivity; public class SecondActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); Log.v( "SecondActivity" , "SecondActivity启动" ); setContentView(R.layout.activity_second); } } |
WenData.java
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
|
package com.example.helloworld; public class WenDate { private String name; private String dateandtime; private String address; private String wendu; public String getWendu() { return wendu; } public void setWendu(String wendu) { this .wendu = wendu; } public String getName() { return name; } public void setName(String name) { this .name = name; } public String getDateandtime() { return dateandtime; } public void setDateandtime(String dateandtime) { this .dateandtime = dateandtime; } public String getAddress() { return address; } public void setAddress(String address) { this .address = address; } public WenDate() { } public WenDate(String name,String dateandtime,String address,String wendu) { this .name=name; this .dateandtime=dateandtime; this .address=address; this .wendu=wendu; } } |