由于某种原因,我的onPostExecute()
完成后没有调用我的AsyncTask
。
我的类(class)干事:public class setWallpaperForeground extends AsyncTask<String, Integer, Boolean>
我的onPostExecute():protected void onPostExecute(Boolean result)
一切正常,我的doInBackground()
成功完成并返回一个 boolean 值,然后就完成了。
谢谢
最佳答案
您是否在UI线程上创建了AsyncTask?还要在onPostExecute()方法上添加@Override注释,以确保正确声明了它。