How do i obtain the setMultiChoiceItems items from my AlertDialog?
<p>I'm using the following code from the apidemos..</p>

<pre><code>        return new AlertDialog.Builder(AlertDialogSamples.this)
            .setIcon(R.drawable.ic_popup_reminder)
            .setTitle(R.string.alert_dialog_multi_choice)
            .setMultiChoiceItems(R.array.select_dialog_items3,
                    new boolean[]{false, true, false, true, false, false, false},
                    new DialogInterface.OnMultiChoiceClickListener() {
                        public void onClick(DialogInterface dialog, int whichButton,
                                boolean isChecked) {

                            /* User clicked on a check box do some stuff */
                        }
                    })
            .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {

                    /* User clicked Yes so do some stuff */
                }
            })
            .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {

                    /* User clicked No so do some stuff */
                }
            })
           .create();
</code></pre>

<p>Under <code>/* User clicked Yes so do some stuff */</code>, i'm not fed the isChecked variable.. however, I am given isChecked in the <code>/* User clicked on a check box do some stuff */</code> section.. Obviously i don't want to update my SharedPrefs on checkbox click, in case the user hits cancel.. </p>

<p>So how do I get the checkboxs and values on the <code>setPositiveButton</code> onClick ?</p>

<p>Thanks.</p>
