Can i create a dialog box without negative or positive buttons. That destroys it self after specific action?
AlertDialog.Builder dialog_detect= new AlertDialog.
Correct code of crocboy's answer is this:
AlertDialog.Builder builder = new AlertDialog.Builder(context);
// set title
builder.setTitle("Your Title");
// set dialog message
builder.setMessage("Message here!").setCancelable(false);
// create alert dialog
AlertDialog alertDialog = builder.create();
// show it
alertDialog.show();
// After some action
alertDialog.dismiss();
Implement a timer and set it to dismiss the DialogBox after a few seconds.
You can call alertDialog .dismiss ()
after any action.