public class Thing implements Parcelable{ public List<String> mFotos; public Thing(ArrayList<String> fotos){ if (fotos == null) mFotos = new FotoList(); else mFotos = new FotoList(fotos); }
How to make access to the method of the mFotos
object was, and the reference to the mFotos
object created in the constructor was mFotos
. Well, that is, you cannot assign another reference to the mFotos
variable, and you can contact the method:
thing.mFotos.add("Строка");
public void add(String s) {mFotos.add(s);}
- Vladyslav Matviienko