The built in http client is the usual Apache HttpClient so it can handle the passing of a cookies for you. I would suggest you make the program actually work and produce correct results before worrying about speed. First worry about what you need. For example do you need validation against a schema? (JSON won't do that). Do you need the extra structure of XML? Which of the two (actually three since you might go for SAX parsing rather than DOM parsing) fits the skill sets already available to you? Isolate the code that processes the http response in its own module so that you can change it without affecting the rest of the code. Once the code is working and giving you correct results then worry about speed. Optimizing a non-running program rarely works.
On Friday, June 8, 2012 6:48:22 AM UTC-4, Fran wrote: > Hi there, > > I need to interchange data between my Android app, written in Java using > eclipse, and an Apache HTTP server through some PHP scripts. > > What is the best way to do so? > > I do not know if there is some bultin functions yet on API that could > make the communication easier than directly using sockets and parsing > strings. > > Thanks a lot in advance, > > On Friday, June 8, 2012 6:48:22 AM UTC-4, Fran wrote: > > Hi there, > > I need to interchange data between my Android app, written in Java using > eclipse, and an Apache HTTP server through some PHP scripts. > > What is the best way to do so? > > I do not know if there is some bultin functions yet on API that could > make the communication easier than directly using sockets and parsing > strings. > > Thanks a lot in advance, > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en