我必须将一个活动传递给另一个活动:
我有SalesProduct enetity类:
public class Product implements Parcelable{
private double availableQuantity;
private double price;
private String productCode;
private String description;
private String description2;
private String productGroup;
private String alternateSearch;
private String productTypeCode;
private String nonStockItemFlag;
private String salableFlag;
private double weight;
private double qty;
private double grossValue;
private double value;
private ArrayList<Product> product;
public Product() {
}
public Product(Parcel in) {
this();
readFromParcel(in);
}
/*
* Constructor calls read to create object
*/
private void readFromParcel(Parcel in) {
in.readTypedList(product, Product.CREATOR); …Run Code Online (Sandbox Code Playgroud) android ×1