我不知道它为什么会出错。昨天,也是上周,它取得了成功。现在它给出了错误。为什么呢?
专业课程
public class Patient implements Serializable{
private int pID;
int uID;
String pName;
String pass;
Date birthDate;
String adress;
String city;
String email;
int tel;
int telefonid;
public boolean Login() { .... }
登录类
Patient patientlogin = new Patient(name.getText().toString(), pass.getText().toString());
if(patientlogin.Login())
{
Bundle bundle = new Bundle();
bundle.putSerializable("User",patientlogin);
veriaktarma.putExtras(bundle);
startActivity(veriaktarma);
}
菜单类
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
_p= (Patient) bundle.getSerializable("User");
Toast.makeText(menu.this,_p.pName, 5000).show();