Android Async, Handler or Timer?

后端 未结 3 751
误落风尘
误落风尘 2021-02-09 03:24

Every 5 seconds, I want to call my webservice and get text (not images), then display it in my ImageAdapter. What would be the best way to accomplish this?

3条回答
  •  星月不相逢
    2021-02-09 04:00

    You should call asynctask inside the application main thread. Asynctask can't be called in a background thread.

提交回复
热议问题