我在哪里可以找到官方的 asynctask.java 类。我找到了一个并包含在我的包中,但在某一行找不到对 Process 的引用: Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
mWorker = new WorkerRunnable<Params, Result>() {
public Result call() throws Exception {
// error here
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
return doInBackground(mParams);
}
};