onPostExecute not called after completion AsyncTask

前端 未结 8 1740
[愿得一人]
[愿得一人] 2020-12-10 09:56

For some reason my onPostExecute() is not called after my AsyncTask finishes.

My class decleration:

public class setWallpaper

8条回答
  •  旧时难觅i
    2020-12-10 10:35

    After having the same problem and none of these answers helped me, I found out that my UI thread was blocked (I used a CountDownLatch.await()) and therefore the onPostExecute() method that is supposed to be called by the UI thread was never called.

提交回复
热议问题