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();