title: Setting AlertDialog with complex string-array resource
body: <p>I have a simple alert dialog as shown below working with a simple string-array (a). I'd like to replace, (a) with a more complex string-array (b) but I am getting a null pointer exception when the dialog tries to resolve the view.</p>
  
  <p>Is this possible or have I done something wrong?</p>
  
  <p>(a) </p>
  
  <pre><code>AlertDialog Code:
  
    final AlertDialog.Builder dialog = new AlertDialog.Builder(new ContextThemeWrapper(ctx,   R.style.mytheme));
    dialog.setTitle(title);
    dialog.setIcon(R.drawable.ic_launcher);
    dialog.setSingleChoiceItems(R.array.array_items, -1, itemSelectedListener);
    final AlertDialog alertDialog = dialog.create();
  
  array_items.xml:
  
    &lt;string-array name="array_items"&gt;
      &lt;item&gt;option a&lt;/item&gt;
      &lt;item&gt;option b&lt;/item&gt;
    &lt;/string-array&gt;
  </code></pre>
  
  <p>(b)</p>
  
  <pre><code>array_items_2.xml:
  
    &lt;string-array name="array_items_2"&gt;
      &lt;item&gt;@array/array_items.xml&lt;/item&gt;
      &lt;item&gt;@array/array_items.xml&lt;/item&gt;
    &lt;/string-array&gt;
  </code></pre>
  
  <p>The second xml will cause the AlertDialog to crash with a NullPointerException.</p>
  
  <p>Have I made a mistake or is this not possible with the AlertDialog without a custom view?</p>