即使使用执行器,也不会调用AsyncTask的doInBackground。



我正在使用AsyncTask并通过executeOnExecutor调用它,我的doInBackground函数偶尔无法调用。有时,只需从设置中强制关闭应用程序即可暂时解决问题。

这是一个已知问题,是否有修复方法?

我尝试使用Process.setThreadPriority()将线程优先级设置为 max,但没有运气。

您是否尝试过 asyncTask.executeOnExecutor(Executors.newSingleThreadExecutor((, parameters(;

最新更新