Application has stopped unexpectedly. Please try again
<p>My android app gives the following when I try to run it....</p>

<p>The application OxfordApp has stopped unexpectedly. Please try again.</p>

<p>My code is as follows:</p>

<pre><code>package oxfordlife.com.android;

public class OxfordApp extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {

        ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(
                  this, R.array.array_name, android.R.layout.simple_spinner_item );
                adapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item );

        Spinner s = (Spinner)findViewById(R.id.spinner1);
        s.setAdapter(adapter);

        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}
</code></pre>

<p>I am populating the spinner from the string.xml file as follows:</p>

<pre><code>&lt;string-array name="array_name"&gt;
&lt;item&gt;Array Item One&lt;/item&gt;
&lt;item&gt;Array Item Two&lt;/item&gt;
&lt;item&gt;Array Item Three&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p>The app works fine if I dont try to bind the data to the spinner but as soon as I try to populate it the error is thrown. Can anyone see what I may be doing wrong here ??</p>
