Nice! Thank you so much!
It worked like this:
Object[] directors = (Object[])
response.get("directors");
Director[] directorArray = new
Director[directors.length];
for (int i=0; i<directors.length; i++) {
directorArray[i] = new Director();
Map m = (Map) directors[i];
directorArray[i].setName(m.get("name").toString());
directorArray[i].setId(m.get("id").toString());
Log.d("log", "name: " + m.get("name"));
Log.d("log", "id: " + m.get("id"));
}
detail.setDirectors(directorArray);
THANK YOU!! You helped me a lot!
On 3 sep, 19:26, skink <[email protected]> wrote:
> Object[] directors = (Object[]) response.get("directors");
>
> Director[] darray = new Director[directors.length];
>
> for (int i=0; i<directors.length; i++) {
> darray[i] = new Director();
> Map map = (Map) directors[i];
> ...
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---