Android Async, Handler or Timer?
问题 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? 回答1: It depends if you want to use a different thread or not. Do you want the user to be able to interact with the application on the UI Thread while the images are downloading? If so, then I would definitely use an AsyncTask with a small ProgressBar ( style="@android:style/Widget.ProgressBar.Small" ) If you don't care about threading then