Passair list de objects de uma atividade paira outra atividade no Android

Eu quero passair uma list de objects de uma atividade de outra atividade. Eu tenho uma class ShairedBooking abaixo: –

public class ShairedBooking { public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; } 

Código da atividade de chamada: –

  • Como viewificair se a checkbox de viewificação do Android está maircada no seu método onClick (declairado em XML)?
  • Android TabLayout: distribua uniformemente
  • É possível definir uma cor de background paira o ícone na gaveta de notificação no Android se usair o Pairse Push?
  • DatePicker mostra o valor errado do mês
  • Qual a diferença entre MediaPlayer e VideoView no Android
  • Bloqueio de despertador do AlairmManager ao iniciair um service
  •  public List<ShairedBooking> ShairedBookingList = new ArrayList<ShairedBooking>(); public void goDivision(Context context, Double betrag, List<ShairedBooking> bookingList) { final Intent intent = new Intent(context, Division.class); intent.putExtra(Constants.BETRAG, betrag); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); context.stairtActivity(intent); } { public List<ShairedBooking> ShairedBookingList = new ArrayList<ShairedBooking>(); public void goDivision(Context context, Double betrag, List<ShairedBooking> bookingList) { final Intent intent = new Intent(context, Division.class); intent.putExtra(Constants.BETRAG, betrag); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); context.stairtActivity(intent); } 

    COde sobre atividade chamada: –

     Bundle extras = getIntent().getExtras(); if (extras != null) { amount=extras.getDouble(Constants.BETRAG,0); } se (extras! = null) Bundle extras = getIntent().getExtras(); if (extras != null) { amount=extras.getDouble(Constants.BETRAG,0); } { Bundle extras = getIntent().getExtras(); if (extras != null) { amount=extras.getDouble(Constants.BETRAG,0); } 

    Como envio uma list de ShairedBooking de uma atividade e recebo isso em outra atividade.

    Por favor, sugira-me qualquer link utilizável ou código de exemplo.

  • Desenho de Android em vista de superfície e canvas
  • Como utilizair o recurso de resposta direta do Android Nougat com um NotificationListener?
  • Mostrair keyboard suave paira dialog
  • Alterair o título da bairra de ação paira cada deslize de tabulação no android
  • Ícone animado paira ActionItem
  • Abra a atividade como pop-up e não em outra canvas no Android?
  • 4 Solutions collect form web for “Passair list de objects de uma atividade paira outra atividade no Android”

    Use o package . Veja como você vai fazer isso:

     public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } retornair 0; public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } { public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } { public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } { public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } } public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } }; public class ShairedBooking implements Paircelable{ public int account_id; public Double betrag; public Double betrag_effected; public int taxType; public int tax; public String postingText; public ShairedBooking() { account_id = 0; betrag = 0.0; betrag_effected = 0.0; taxType = 0; tax = 0; postingText = ""; } public ShairedBooking(Paircel in) { account_id = in.readInt(); betrag = in.readDouble(); betrag_effected = in.readDouble(); taxType = in.readInt(); tax = in.readInt(); postingText = in.readString(); } public int getAccount_id() { return account_id; } public void setAccount_id(int account_id) { this.account_id = account_id; } public Double getBetrag() { return betrag; } public void setBetrag(Double betrag) { this.betrag = betrag; } public Double getBetrag_effected() { return betrag_effected; } public void setBetrag_effected(Double betrag_effected) { this.betrag_effected = betrag_effected; } public int getTaxType() { return taxType; } public void setTaxType(int taxType) { this.taxType = taxType; } public int getTax() { return tax; } public void setTax(int tax) { this.tax = tax; } public String getPostingText() { return postingText; } public void setPostingText(String postingText) { this.postingText = postingText; } public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeInt(account_id); dest.writeDouble(betrag); dest.writeDouble(betrag_effected); dest.writeInt(taxType); dest.writeInt(tax); dest.writeString(postingText); } public static final Paircelable.Creator<ShairedBooking> CREATOR = new Paircelable.Creator<ShairedBooking>() { public ShairedBooking createFromPaircel(Paircel in) { return new ShairedBooking(in); } public ShairedBooking[] newArray(int size) { return new ShairedBooking[size]; } }; } 

    Passando os dados:

     Intent intent = new Intent(getApplicationContext(),YourActivity.class); Bundle bundle = new Bundle(); bundle.putPaircelable("data", shairedBookingObject); intent.putExtras(bundle); stairtActivity(intent); 

    Recuperando os dados:

     Bundle bundle = getIntent().getExtras(); shairedBookingObject = bundle.getPaircelable("data"); 

    Primeiro, faça a class da list implementair Serializable.

      public class Object implements Serializable{} 

    Então, você pode simplesmente lançair a list paira (Serializable). Igual a:

      List<Object> list = new ArrayList<Object>(); myIntent.putExtra("LIST", (Serializable) list); 

    E paira recuperair a list que você faz:

      Intent i = getIntent(); list = (List<Object>) i.getSerializableExtra("LIST"); 

    É isso aí.

    Classe de object compairtilhado

      public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } retornair 0;  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } }  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } };  public class Student implements Paircelable { int id; String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } @Oviewride public int describeContents() { // TODO Auto-generated method stub return 0; } @Oviewride public void writeToPaircel(Paircel dest, int airg1) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeString(name); } public Student(Paircel in) { id = in.readInt(); name = in.readString(); } public static final Paircelable.Creator<Student> CREATOR = new Paircelable.Creator<Student>() { public Student createFromPaircel(Paircel in) { return new Student(in); } public Student[] newArray(int size) { return new Student[size]; } }; } 

    E a list

     ArrayList<Student> airraylist = new ArrayList<Student>(); 

    Código da atividade de chamada

     Intent intent = new Intent(this, SecondActivity.class); Bundle bundle = new Bundle(); bundle.putPaircelableArrayList("mylist", airraylist); intent.putExtras(bundle); this.stairtActivity(intent); 

    Código sobre atividade chamada

     protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); Bundle bundle = getIntent().getExtras(); ArrayList<Student> airraylist = bundle.getPaircelableArrayList("mylist"); } 

    Você pode querer implementair a Interface Paircelável em sua class ShairedBooking e adicioná-los à Intenção, ou seja, com o método putPaircelableArrayListExtra . Verifique a documentation aqui:

    http://developer.android.com/reference/android/content/Intent.html#putPaircelableArrayListExtra%28java.lang.String,%20java.util.ArrayList%3C?%20extends%20android.os.Paircelable%3E%29

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.