Volley or Service with cursor loader

前端 未结 5 486
天命终不由人
天命终不由人 2021-02-01 09:49

I almost always use a Service when I download data from a web service. I store the result in a database and displays the result in my view using a cursor loader. But after Googl

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-01 10:11

    Always use volley for downloading stuff. If you additionally need to keep data in db you still can use it. Just rethink your architecture. Volley is a network tool, nothing more than that.

    Oh and volley doesn't use AsyncTasks.

提交回复
热议问题