How to format a String Array from XML
<p>I want to do the same thing I did here for a <strong><code>String</code></strong> resource:</p>

<pre><code>write(String.format(getString(R.string.night), "Scurcola"));
</code></pre>

<p>but for a <strong><code>String Array</code></strong>, defined as follows:</p>

<pre><code>&lt;string-array name="goodMorning" formated="false"&gt;
    &lt;item&gt;Good Morning folks!&lt;/item&gt;
    &lt;item&gt;Sun\'s out, guns out.&lt;/item&gt;
    &lt;item&gt;Careless vampires burn, and you wake up!&lt;/item&gt;
    &lt;item&gt;Can\'t find the moon. Oh it\'s probably morning then..&lt;/item&gt;
    &lt;item&gt;Darkness flees from %s, wake up!&lt;/item&gt;
    &lt;item&gt;Sunlight manifests, it\'s morning %s!&lt;/item&gt;
    &lt;item&gt;Stars went to bed, and %s wakes up!&lt;/item&gt;
    &lt;item&gt;Be beep. Be beep. %s wake up!&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<hr>

<p>How can I achieve this?</p>