我是Android应用程序开发的新手,在处理异步任务时遇到了问题。所以我正在尝试创建一个ECG绘图应用程序,它在绘图过程中进行一些后台处理。我定义了以下异步任务-privateclassErosionextendsAsyncTask{@OverrideprotectedVoiddoInBackground(Void...unused){inti,tempIndex;double[]tempArray=newdouble[13];doublemin=ecgSamples[ecgSampleForErosionIndex]-gArray[0];while(ecgIncoming){if(e