Java : a WebService asking embeded in a AsyncTask

后端 未结 2 1966
感动是毒
感动是毒 2020-12-12 07:04

. Hi, as a young android developer i was looking at a way to get a JSON response from a server. I started looking at AsyncTask but i not feeling comfortable to code an Async

2条回答
  •  情深已故
    2020-12-12 07:35

    Can I just point out that, because you are not doing this in a Service, your remote query stands every chance of being killed, as soon your Activity is hidden. You have, essentially, rewritten IntentService... except that your version will get killed and the version the framework provides, free, will not

    IntentService, FTW

提交回复
热议问题