irobotxxx irobotxxx - 1 year ago 50
Android Question

Mulitple API Calls inside an IntentService/Service

just a quick question (I think this is more of a design question than actually programming) I am looking for a way to do Multiple API calls in an IntentService or a Service giving that the result from one call is being used in another. I thought of having different AsyncTask for each different call but am not if this is an efficient method. Or is it possible to just make the call in the Service without the AsyncTask?.. Any feedback and any other better solution will be greatly appreciated. Thank you.

Answer Source

I think in two diferentes ways, but depends your application, asyntask(you mentioned) or Android asynchttp.

http://loopj.com/android-async-http/

But i repeat, depends your project maybe we need more information to extends the answer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download