我正在使用AsyncTask
并通过executeOnExecutor
调用它,我的doInBackground
函数偶尔无法调用。有时,只需从设置中强制关闭应用程序即可暂时解决问题。
这是一个已知问题,是否有修复方法?
我尝试使用Process.setThreadPriority()
将线程优先级设置为 max,但没有运气。
您是否尝试过 asyncTask.executeOnExecutor(Executors.newSingleThreadExecutor((, parameters(;