As I generate a bitmap arraylist in my setImage setter, look for some examples but I only found the following example
My code
public class CheckIn {
private int folio;
private String customer;
private String delivery;
private ArrayList<Bitmap> images;
public int getFolio() {
return folio;
}
public void setFolio(int folio) {
this.folio = folio;
}
public String getCustomer() {
return customer;
}
public void setCustomer(String customer) {
this.customer = customer;
}
public String getDelivery() {
return delivery;
}
public void setDelivery(String delivery) {
this.delivery = delivery;
}
public ArrayList<Bitmap> getImages() {
return images;
}
public void setImages(ArrayList<Bitmap> images) {
this.images = images;
}
}
Example that I found
public class City {
protected int id;
protected String name;
protected String data;
protected Bitmap photo;
public City(int id, String name) {
this.id = id;
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
try {
byte[] byteData = Base64.decode(data, Base64.DEFAULT);
this.photo = BitmapFactory.decodeByteArray( byteData, 0,
byteData.length);
}
catch(Exception e) {
e.printStackTrace();
}
}
public Bitmap getPhoto() {
return photo;
}
}
The example only sets a bitmap in setData but I have not only one image but several