title: dynamic alertdialog with radio buttons
body: <p>I am trying to make the item list dynamic, so i can add to it on runtime, but i have no idea. CharSeqence isnt dynamic, and no clue how to use the adapter option, how could i change my code to be dynamic? </p>
  
  <pre><code>private void alertDialogLoadFile() {
  
      AlertDialog.Builder alert = new AlertDialog.Builder(this);
      alert.setTitle("Choose:");  
      CharSequence[] items = { "moshe", "yosi", "ee" };
      alert.setSingleChoiceItems(m_items , -1, new DialogInterface.OnClickListener() {
  
          public void onClick(DialogInterface dialog, int item){
              /* User clicked on a radio button do some stuff */
          }
      });
  
      alert.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
  
          public void onClick(DialogInterface dialog, int id) {
      }
      });
  
      alert.setNegativeButton("No", new DialogInterface.OnClickListener() {
  
          public void onClick(DialogInterface dialog, int id) {
              dialog.cancel();
          }
      });
  
  
      AlertDialog ad = alert.create();
      ad.show();
  
  }
  </code></pre>