Trouble setting items in AlertDialog with OnClickListener
<p>Having trouble trying to set up a spinner withing an AlertDialog, keep getting the error
"The method setItems(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments (String[], new View.OnClickListener(){})"</p>

<p>I'm fairly new to Android programming and I am still getting used to it,  any help would be greatly appreciated! Thanks</p>

<pre><code>AlertDialog.Builder b = new Builder(this);
    b.setTitle("Select Day");
    String[] types = {"1", "2", "3"};
    b.setItems(types, new OnClickListener){
        public void onClick(DialogInterface dialog, int which){
            dialog.dismiss();
            switch(which){
            case 0:
                day = "1";
                break;
            case 1:
                day = "2";
                break;
            }
        }


    });
</code></pre>
