Wednesday, October 10, 2012

Re: [android-developers] Re: optimized way to get large data from webservice(json or xml)

If you own the web services, you could use the Amazon AWS model - if
you make a request that would return a ton of data (say 2500 items),
it gives you the first 1000 items, and a way to request the next items
(up to 1000). After you get the next 1000, you have a way to get the
next items (again up to 1000). After you get the last 500 items, it
tells you that's all there is.

You could use that approach in your service (make the number of
returned items 10 or 100 depending on your threshold for "slow") and
render your list as soon as the first bundle was received and continue
fetching additional data after that.

Larry

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate