Calling Looper more than once causes “sending message to a Handler on a dead thread”

前端 未结 2 1511
[愿得一人]
[愿得一人] 2021-01-23 10:56

I am using an Executor [fixed thread pool] with my own ThreadFactory that adds a Looper:

Handler HANDLER = new Handler();
Executor    THREADS = Executors.newFixe         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-23 11:39

    See http://code.google.com/p/android/issues/detail?id=20915, which is a possible root cause of the problem. It includes a workaround for the issue.

提交回复
热议问题