title: The method setMultiChoiceItems(int, boolean[], DialogInterface.OnMultiChoiceClickListener) in the type AlertDialog.Builder is not applicable
body: <p>I am trying to build an dynamic dialog window  in my onNewIntent method for any Integer ArrayList for example [1,9,13] but I am getting at this line <code>builder.setMultiChoiceItems</code> this error"</p>
  
  <blockquote>
    <p>The method setMultiChoiceItems(int, boolean[],
    DialogInterface.OnMultiChoiceClickListener) in the type
    AlertDialog.Builder is not applicable for the arguments
    (ArrayList, null, new
    DialogInterface.OnMultiChoiceClickListener(){})</p>
  </blockquote>
  
  <p>I appreciate any help.</p>
  
  <p>onNewIntent method:</p>
  
  <pre><code>@Override
  protected void onNewIntent(Intent intent) {
      super.onNewIntent(intent);
  
      setIntent(intent);
  
      Bundle extras = getIntent().getExtras();
      if (extras != null) {
  
          ArrayList&lt;Integer&gt; routeList = extras
                  .getIntegerArrayList("stop_route");
          AlertDialog.Builder builder = new AlertDialog.Builder(this);
  
          builder.setTitle("Select");
  
          builder.setMultiChoiceItems(routeList, null, new DialogInterface.OnMultiChoiceClickListener() {
  
              @Override
              public void onClick(DialogInterface dialog, int which, boolean isChecked) {
  
  
              }
          });
          builder.setPositiveButton(android.R.string.ok,
                  new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int id) {
  
                      }
                  });
          builder.setNegativeButton(android.R.string.cancel,
                  new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int id) {
  
                      }
                  });
  
  
          builder.create();
          builder.show();
  
      }
  
  }
  </code></pre>