well.. i got this from my java trainer/friend since the list is an object, we could use the belo code
OutputStream os = socket.getOuputStream(); ObjectOuputStream out = new ObjectOutputStream(os); out.writeObject(list); out.close(); InputStream is = socket.getInputStream(); ObjectInputStream in = new ObjectInputStream(is); ArrayList list = (ArrayList)in.readObject(); in.close(); On Apr 7, 8:57 pm, raqz <[email protected]> wrote: > Hi, > > I wish to send a list containing objects from server to client and > vice versa through httpurlconnection. > Elaborating the same, the list contains a set of objects which is > defined both in the server and the client. Its just that the server > queries a database and sends the object to the client which collects > the same and displays it to the user. > > Please let me know if thats possible and if it is, how would I be able > to accomplish that. > > Thanks, > Raqeeb -- 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 To unsubscribe, reply using "remove me" as the subject.

