在Asynctask的doinBackground()函数中,我在数据库中插入大量数据。同时我想在Activity上滚动列表。但是当doinBackground执行时,它会冻结或挂起我的列表。那时我无法滚动列表。我的结构从2天开始。我为此尝试了很多,但没有得到任何明确的描述和理由。所以,如果有任何IDEA如何解决它,那将是非常可观的。提前谢谢。
int i = 0; for(int j = i; j
for(int k = j; k<Integer.parseInt(listchscheduleArraylength.get(j));k++){
if(databasehelper.insert_into_table2(list_ch_autoid.get(j), list_sch_prg_id.get(k), list_sch_prg_title.get(k)
, list_sch_prg_gnre.get(k), list_sch_prg_sch_id.get(k), list_sch_prg_strt_time.get(k),
list_sch_prg_end_time.get(k), list_sch_prg_sch_date.get(k), list_sch_prg_sch_desc.get(k))){
Log.v("TABLE 2 status", "inserted");
}else {
Log.v("TABLE 2 status", " not inserted");
}
}// End of inner loop
} // End of outer loop