In most cases, all you really need is a request and a response. The request is basically a list of name-value pairs that become the query parameter part of the request URL. The response, in addition to error codes, is not a list of objects, but a data structure that's been serialized. Popular serialization formats are XML and JSON. If you can can be more specific about the request and response data structures, I think you'll get better answers. As they say, half the solution is asking the right question. When you use the term "object", that means quite a few things, especially in the context of an object-oriented programming language, such as Java. See if you can rephrase the question, either without using "object" or else being specific about what it means in the context of your problem.
On Wed, Apr 7, 2010 at 11:15 PM, raqz <[email protected]> wrote: > 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]<android-developers%[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. > -- 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

