Android AlertDialog inside AsyncTask

前端 未结 4 1739
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 05:57

I have a listview which have checkboxes. For each checkbox (they are about 3), it has a specific AsyncTask for it.

I never know what checkboxes use

4条回答
  •  Happy的楠姐
    2021-01-01 06:34

    you cannot call an alert box inside do inbackground method.same for a toast. No UI operations can be performed inside a doinbg method. instead use the post execute method, or change the way things have to be done.

提交回复
热议问题