Showing a List in Android Alert Dialog

Turns out if you use the AlertDialog.Builder you can not use the .setMessage() method and any of the list methods such as .setItems, .setMultichoiceitems(), or .setSingleChoiceItems(). If you do the Alert Dialog will only show what was defined in SetMessage().

I foolishly spent the better part of an hour before thinking to google the exact problem I was having and found the answer here.

public Dialog onCreateDialog(Bundle savedInstanceState) {
        stateAdapter = new StateAdapter(getActivity(),android.R.layout.select_dialog_item,states);
        AlertDialog.Builder ADBuilder = new AlertDialog.Builder(getActivity());
        ADBuilder.setTitle("Select State");

        ADBuilder.setSingleChoiceItems(stateAdapter,-1,new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialogInterface, int i) {
                stateselectedInterface.StateSelected(stateAdapter.getItem(i));
                dismiss();
            }
        });


        AlertDialog ad = ADBuilder.create();
        return ad;
    }