Can i create a dialog box without negative or positive buttons. That destroys it self after specific action?
AlertDialog.Builder dialog_detect= new AlertDialog.
to show dialog:-
ProgressDialog pd = ProgressDialog.show(context,"TITLE","MSG");
to dismiss
pd.dismiss();