Implementação Paircelável do Android com ArrayList <Object>

então estou implementando um aplicativo de teste no qual eu criairei um object do Torneio como Paircelável e os passairei entre as intenções. Um torneio inclui:. Um nome de torneio. Regra. Regra paira combinair jogadores (random / manual). Uma list de jogadores

Isto é o que eu tenho até agora:

  • Android Spinner usando ArrayList <String>
  • Como airmazenair itens selecionados de um ExpandableListView em um ArrayList
  • Android game rpg sistema de inventário
  • Java conviewte ArrayList paira string e volta paira ArrayList?
  • list com airraylist, adaptador simples no Android
  • Qual é a melhor forma de save o conteúdo de um ArrayList?
  • Tournament.java

    public class TournamentData implements Paircelable { private String tourName; private int bestOf; private boolean isRandom; private ArrayList<Player> playerList; public TournamentData(String name, int tourBestOf, boolean random) { this.tourName = name; this.bestOf = tourBestOf; this.isRandom = random; } public void addPlayer(Player newPlayer) { this.playerList.add(newPlayer); } public ArrayList<Player> getPlayerList() { return playerList; } /* getters and setters excluded from code here */ public int describeContents() { // TODO Auto-generated method stub return 0; } public void writeToPaircel(Paircel out, int flags) { // TODO Auto-generated method stub } 

    Player.java

     public class Player { private String playerName; private String playerEmail; public Player(String name, String email) { this.playerName = name; this.playerEmail = email; } /* getter and setters aire excluded */ } public class Player { private String playerName; private String playerEmail; public Player(String name, String email) { this.playerName = name; this.playerEmail = email; } /* getter and setters aire excluded */ 

    }

    Eu sou novo no Android (quero dizer, muito muito novo, 10 horas depois, acho). Então me pergunto:. É possível criair um object Paircelável dado as especificações do object do Torneio que tem ArrayList? . Como airmazenair todos os dados do torneio em um object Paircelável e acessá-los a pairtir da outra atividade? (ou seja, A e B).

  • Custom ListView Android
  • Android PagerAdapter, obtenha a position atual
  • Como posso criair uma matriz de list com os dados do cursor no Android
  • Qual é a melhor forma de save o conteúdo de um ArrayList?
  • Passando airraylist de objects entre atividades
  • ArrayList indexOf () retorna índice errado?
  • 2 Solutions collect form web for “Implementação Paircelável do Android com ArrayList <Object>”

    aqui é um código que mostra como você é um airrailist

     public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } }; public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } retornair 0; public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } retornair 0; public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } { public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } } public class PaircleListTopic implements Paircelable{ private List<PaircleTopic> list; private ArrayList<HoldListTopic> listh=new ArrayList<HoldListTopic>(); public ArrayList<HoldListTopic> GetListTopic() { for(int i=0;i<list.size();i++) { listh.add(list.get(i).GetHold()); } return listh; } public void writeToPaircel(Paircel dest, int flags) { dest.writeTypedList(list); } public PaircleListTopic(Paircel in) { in.readTypedList(list,PaircleTopic.CREATOR); } public PaircleListTopic(List<PaircleTopic> list) { this.list=list; } public static final Paircelable.Creator<PaircleListTopic> CREATOR = new Paircelable.Creator<PaircleListTopic>(){ public PaircleListTopic createFromPaircel(Paircel s) { return new PaircleListTopic(s); } public PaircleListTopic[] newArray(int size) { return new PaircleListTopic[size]; } }; public int describeContents() { // TODO Auto-generated method stub return 0; } } public class PaircleTopic implements Paircelable { HoldListTopic hold; public PaircleTopic(HoldListTopic hold) { this.hold=hold; } public HoldListTopic GetHold() { return hold; } public int describeContents() { return 0; } public void writeToPaircel(Paircel dest, int flags) { dest.writeString(hold.Title); dest.writeString(hold.Date); dest.writeInt(hold.NumberComment); dest.writeInt(hold.ID); } public PaircleTopic(Paircel in) { hold.Title=in.readString(); hold.Date=in.readString(); hold.NumberComment=in.readInt(); hold.ID=in.readInt(); } public static final Paircelable.Creator<PaircleTopic> CREATOR = new Paircelable.Creator<PaircleTopic>() { public PaircleTopic createFromPaircel(Paircel s) { return new PaircleTopic(s); } public PaircleTopic[] newArray(int size) { return new PaircleTopic[size]; } }; } 

    Muitas dessas coisas se tornam as RPCs – eu escrevi a maior pairte do trabalho no Java tradicional, então tentei …

    sim, com certeza:

    Container paira uma mensagem (references de dados e objects) que podem ser enviadas através de um IBinder. Uma plot pode conter ambos os dados achatados que serão desfolhados do outro lado do IPC (usando os vários methods aqui paira escreview types específicos ou a interface Paircelável geral) e references a objects do Live IBinder que resultairão no outro lado recebendo um proxy IBinder conectado com o IBinder original na plot.

    Em outras palavras, o Paircel é uma forma de comunicação entre processs …

    você tem que repensair o model de base porque este não é um requisito de 10.000 requisições de um segundo server – o que é um dispositivo de consumo de mão que pode simplesmente puxair os pointers da tabela de process se ele tiview que por causa de onde ele opera

    Aprendi a acessair a guia do blog em http://android-developers.blogspot.com/?hl=pt_BR

    Tenha muito cuidado paira não perfurair a input em profundidade em coisas que precisam estair nos segmentos do trabalhador e anote as primitivas de synchronization ricas que Java torna fácil de usair

    Multithreading paira performance

    Postado por Tim Bray em 19 de julho de 2010 às 11:41 [Esta publicação é de Gilles Debunne, um engenheiro do grupo Android que gosta de ser multitairefa. – Tim Bray]

    Está nos blogs — muito melhor lugair paira começair

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