[android-developers] Re: XML or JSON in Android

2011-01-31 Thread Rotundjere
XML is very heavy... use JSON or binary text to store something like config files ^^ -- 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,

[android-developers] Re: XML or JSON in Android

2011-01-31 Thread Federico Paolinelli
Please note also that c2dm is proposed as a notification of new data available on the server (or at least, it is what I understood :-) ). There is a size limit of the data that can be bundled in the message. The c2d message should only trigger your app to start the fetching (and I wouldn't

Re: [android-developers] Re: XML or JSON in Android

2011-01-31 Thread Kostya Vasilyev
I'm going to contribute very unorthodox two cents on this. The original poster wrote that his app does this: 1. I parsing XML in android which is hosted on server (same like RSS feed). 2. It takes around 10 second depend on network speed. 3. XML refresh on server in every 15 minutes.

[android-developers] Re: XML or JSON in Android

2011-01-30 Thread Stephan Wiesner
I find JSON faster and much easier to use. Easier to produce the data as well :-) Stephan On 28 Jan., 20:20, Kumar Bibek coomar@gmail.com wrote: JSON is lighter, and is simple. :) Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Fri, Jan 28, 2011 at 1:17 PM,

Re: [android-developers] Re: XML or JSON in Android

2011-01-30 Thread Kevin Duffey
C2DM sounds like the right way to do this. I am interesting to know if the use of C2DM is completely free from the server to the google servers? That is pretty nice if google provides those servers for free to all C2DM developers. On Sun, Jan 30, 2011 at 7:37 AM, Stephan Wiesner

[android-developers] Re: XML or JSON in Android

2011-01-28 Thread Jake Basile
I have used JSON as the transport encoding in an enterprise app, and it has been easy to use and effective at cutting down communication size from XML. As a side note, something you may want to consider is using C2DM, as polling every 15 minutes will destroy battery life, suck up bandwidth, and