个人冲刺(二)——体温上报app(一阶段)
任务:完成了WenData类的编写,同时完成了SecondActivity.java
SecondActivity.java
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
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; } }