title: How to write onDismissListener to AlertDialog builder?
body: <p>Please see the code below.</p>
  
  <pre><code>final CharSequence[] cs = DeviceList.toArray(new CharSequence[DeviceList.size()]);
      AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
      builder.setTitle("Pick the Item");
  
      builder.setItems(cs, new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {
  
              //do something
          }
  
      });
  
      builder.show(); 
  </code></pre>
  
  <p>Some one please help me to implement a builder onDismissListener event in this code?</p>