Can i create a dialog box without negative or positive buttons. That destroys it self after specific action?
AlertDialog.Builder dialog_detect= new AlertDialog.
You can also write crocboy's code like this:
AlertDialog alertDialog = new AlertDialog.Builder(context)
.setTitle("Your Title")
.setMessage("Message here!")
.setCancelable(false)
.create();
alertDialog.show();
// After some action
alertDialog.dismiss();
It does exactly the same thing, it's just more compact.