On Sep 3, 7:40 pm, Wouter <[email protected]> wrote:
> 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!
>

btw you could use
Map<String, String> m = ...

so you dont have to use .toString()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to