android: converting from multichoice to singlechoice
<p>i found this code for multichoice, i need to convert from multichoice to singlechoice</p>

<p>how to convert it ?</p>

<pre><code>switch(id){

        case 1:
        return new AlertDialog.Builder(this)
        .setIcon(R.drawable.ic_launcher)
        .setTitle("Pic One")
        .setPositiveButton("OK", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton)
        {
        Toast.makeText(getBaseContext(),"OK clicked!", Toast.LENGTH_SHORT).show();
        }
        })
        .setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog,int whichButton)
        {
        Toast.makeText(getBaseContext(),"Cancel clicked!", Toast.LENGTH_SHORT).show();
        }
        })

        .setMultiChoiceItems(Webs, itemsChecked, new DialogInterface.OnMultiChoiceClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which,boolean isChecked) {
        Toast.makeText(getBaseContext(),Webs[which] + (isChecked ? " checked!": " unchecked!"),
        Toast.LENGTH_SHORT).show();
        }
        }
        )
        .create();
</code></pre>
