thank you! works great now.. But i think there is a problem with the xml rpc client.. I make a call film.retrieveCinemas to get a list of all the new movies in cinema but i get this error:
org.xmlrpc.android.XMLRPCException: java.io.IOException: Cannot deserialize value and this is a known issue http://code.google.com/p/android-xmlrpc/issues/detail?id=8 Unable to parse string when it is an empty string So i don't know how i can get this response parsed.. I am trying to change the source code from the android xml rpc client but without success.. On 3 sep, 20:52, skink <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

