title: How to get selected item of a singlechoice Alert Dialog?
body: <p>I have this code to show a dialog with singlechoice(radio) options.</p>
  
  <pre><code>AlertDialog ad = new AlertDialog.Builder(this)
  .setCancelable(false)
  .setIcon(R.drawable.alert_dialog_icon)
  .setTitle(R.string.choose_one)
  .setSingleChoiceItems(seq, pos,null)
  .setPositiveButton( R.string.ok, new DialogInterface.OnClickListener() { 
    public void onClick( DialogInterface dialog, int whichButton) 
    { 
      // dialog dismissed
    } 
   }).create();
  </code></pre>
  
  <p>How do I get the choice that has been selected?</p>