[Message delayed due to technical difficulties..] raqz and I have been discussing this off-list, so just to sync things up a bit...
Raqz asked me about JSON -- possibly in response to your suggestion. It's a good suggestion to consider. I tend to suggest XML by default, because it's more standard and flexible, with a broader set of tools. It gives you far broader interoperability. JSON, by contrast, is more limited, with fewer tools -- and a whole lot less to learn. I should recommend it more often to beginners. It's a less useful skill overall - but it's so very easy to learn that isn't really much of a disadvantage. If, as in this case, all you want to do is get some data from point to point, and have to learn other stuff as well, it's far better to eliminate XML from the equation so you can focus on what's essential. It's also quite easy to support both. I've supported services that provided JSON for web client UIs, and XML for various tools using XSLT and other XML technologies, giving the same functionality to both sets of client. On Apr 11, 6:13 am, Anthoni <[email protected]> wrote: > Hi raqz, > > I saw your previous post in that you were sending lists of friends via > serialization and were advised to use xml instead. > Instead of XML you could also use JSON as it is more lightweight than > using XML and doesn't take long to implement. > I was using XML as my back end for my database to communicate with my > application but I changed it all to JSON and haven't looked back > since. > > Here is an article on parsing JSON with > Javahttp://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/ > Read through that and it should give you some ideas. There is an > article on getting JSON back from the server but I can't find that at > moment. > Will try and dig it out though. > > Regards > Anthoni > > On Apr 11, 8:50 am, raqz <[email protected]> wrote: > > > > > Hi, I just tried reading a tutorial and created my app using SAX but > > its not working for some reason and I have no idea why :) > > Could some one try helping me > > > Thanks in advance, > > raqz > > > On Apr 11, 12:23 am, raqz <[email protected]> wrote: > > > > Hi, > > > > Could some one please tell me the basic steps that are required to > > > transfer a list of objects from a webserver to android and vice versa > > > using XML. I searched tutorials but found tutorials only for complex > > > RSS feeds or something like 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.

