I would like to keep my dialog open when I press a button. At the moment it\'s closing.
AlertDialog.Builder builder = new AlertDialog.Builder(this); builder
You will probably need to define your own layout and not use the "official" buttons; the behavior you're asking for is not typical of a dialog.