문제

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?

도움이 되었습니까?

해결책

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!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top