Tag: android-intent

Android – 如何在Android上将对象从一个Activity传递到另一个Activity

我正在努力从一个发送我的客户类的对象Activity并在另一个中显示它Activity。 客户类的代码: public class Customer { private String firstName, lastName, Address; int Age; public Customer(String fname, String lname, int age, String address) { firstName = fname; lastName = lname; Age = age; Address = address; } public String printValues() { String data = null; data = "First Name :" + firstName + " Last Name