progressdialog - progress dialog not showing in android? -
when progress dialog not show in android? want know circumstances when above can happen:
in case progress dialog not showing in case:
func{ progressdialog.show(); .... ..... anotherfunction(); listview.setadapter(); progressdialog.dismiss(); }
what general rule of thumb dialog boxes?
thank in advance.
edit when .show() command executed progress dialog should show. when otherfucntion() called, previous command of progressdialog show stop?
seems need use asynctask ui (including progressdialog) not update if ui thread still busy. there many examples in that.
and rule of thumb - if need progress dialog - need asynctask.
it not command stops, if execute sequence of methods on ui thread, ui not updated until sequence over, after progressdialog.dismiss()
, progressdialog should not displayed anymore.
Comments
Post a Comment