You can also zip the data on the server side and decompress it on the
data side.  Might save some time.
If you use DefaultHttpClient you can use headers (ENCODING_GZIP) so it
does it automatically.

Also, it seems like your application will be wasting network and
battery by checking the server so frequently.
A better architecture would be to use C2DM or something similar only
when a new item has been added to the feed.
If it's simple enough, you can tell the client to simply download
those new entries when they become available.

On Fri, Jan 28, 2011 at 11:20 AM, Kumar Bibek <[email protected]> wrote:
> JSON is lighter, and is simple. :)
>
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
>
> On Fri, Jan 28, 2011 at 1:17 PM, Ranveer <[email protected]> wrote:
>>
>> Hi All,
>>
>> I am developing an Android application.
>> Following is my scenario:
>>
>> 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.
>>
>> Is there any other way so I can make it more faster then current.
>> Someone suggest me to use JSON instead of XML.
>> Can some one suggest me; which format is better from XML and JSON (In term
>> of fast execution and easy to use).
>>
>> regards
>>
>>
>> --
>> 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
>
> --
> 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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

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