I have the following DTO object that represents a contact:
public class ContactDTO {
private String name;
private String eMail;
public ContactDTO(String name, String eMail){
this.name = name;
this.eMail = eMail;
}
public void setName(String name){
this.name = name;
}
public String getName(){
return this.name;
}
public void setEmail(String eMail){
this.eMail = eMail;
}
public String getEmail(){
return this.eMail;
}
}
I want to get an array of ContactDTO from Contact Provider data, I've seen arround and I know how to populate a List View with that contact data; but I don't know how to get the fields of every contact for populate that ContactDTO.
Thanks.