What happens to this thread runnable at the end once it is completed?

后端 未结 2 1820
眼角桃花
眼角桃花 2021-01-18 01:09

I have this thread which downloads a few images from the server. So once it downloads the images I call the handler and carry on UI updation. So since stop() for thread is d

2条回答
  •  太阳男子
    2021-01-18 01:33

    You should look into the ExecutorService and Executors.

    If its the same as regular Java then it provides some powerful thread management including shutting down all the threads at once.

提交回复
热议问题