Reputation: 25
I develop simple information application what display data from remote host. Data come via http in json or xml format. What is best modern approach for that: service, content-provider, loader or simple asynctask?
Upvotes: 1
Views: 191
Reputation: 4567
None of the above, use Robospice and Spring for Android, here is an infographic: https://raw.github.com/octo-online/robospice/master/gfx/RoboSpice-InfoGraphics.png
Basically it will handle reading JSon, proper lifecycle management, and no memory leaks!
Upvotes: 2