I created an AlertDialog:
private CharSequence[] _items = { \"item1\", \"item2\", \"item3\", \"item4\", \"item5\", \"item6\", \"item7\" }; AlertDialog.Builder d
The problem is you are using setOnDismissListener of AlertDialog.Builder. This was introduced in Api level 17, setOnDismissListener of AlertDialog itself has been since api level 1.
setOnDismissListener
AlertDialog.Builder
AlertDialog
AlertDialog alert = daysBuilder.create(); alert.setOndismissListener(yourdismisslistener); alert.show();`