Good tutorial on setting up a RESTful client to receive JSON data from
the Web: 
http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/



On Apr 7, 11:47 pm, Frank Weiss <[email protected]> wrote:
> "Sterilization" is not really what I had in mind. LOL
>
> Actually, when you parse the XML and create an object graph of lists and
> arrays, that's called "de-serialization". What
> serialization/de-serialization means is to turn a nested data structure into
> a stream of characters and vice-versa.
>
>
>
> On Wed, Apr 7, 2010 at 11:39 PM, Tommy <[email protected]> wrote:
> >  I agree. I currently use an asp.net web service to create and XML file
> > full of what I want. Then I parse it and create my Lists or Arrays or
> > whatever from the XML. Although I don't know what your purpose is
> > sterilization might be a better option.
>
> > *From:* [email protected] [mailto:
> > [email protected]] *On Behalf Of *Frank Weiss
> > *Sent:* Thursday, April 08, 2010 2:37 AM
> > *To:* [email protected]
> > *Subject:* Re: [android-developers] [SOLVED]Re: sending lists from a
> > server to client (android)
>
> > 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%2Bunsubs 
> > [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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > --
> >  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%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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