Android spinner give a NullPointException
<p>Any ideas why this code throws a NullPointException?</p>

<pre><code>    Spinner spinnerLoadLayouts = (Spinner)this.findViewById(R.id.spnLoadLay);

    ArrayAdapter&lt;CharSequence&gt; adapter = 
    new ArrayAdapter&lt;CharSequence&gt;(this, android.R.layout.simple_spinner_item, new ArrayList&lt;CharSequence&gt;());

    adapter.add("aaa"); adapter.add("bbb");
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    spinnerLoadLayouts.setAdapter(adapter);
</code></pre>

<p>Thanks! :)</p>
