Android: AsyncTask ProgressDialog will not open in ActivityGroup

后端 未结 3 999
滥情空心
滥情空心 2021-02-05 13:57

I am trying to have a a progress dialog open when polling my server. The class is an ActivityGroup because it is nested within a tab bar. To keep the view within the frame, the

3条回答
  •  攒了一身酷
    2021-02-05 14:34

    Simple here you can also use following

    private final ProgressDialog dialog = new ProgressDialog(getParent());
    

    it work perfectly for me .

提交回复
热议问题