loader Animation null pointer?
<p>I'm attempting to implement an animated drawable with the following...</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" &gt;
&lt;item android:drawable="@drawable/load_0000" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0001" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0002" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0003" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0004" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0005" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0006" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0007" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0008" android:duration="50" /&gt;
&lt;item android:drawable="@drawable/load_0009" android:duration="50" /&gt;
&lt;/animation-list&gt;
</code></pre>

<p>However, when I execute the following code I get thrown back a null pointer...</p>

<pre><code>         ImageView img = (ImageView)findViewById(R.id.load_bar);
     img.setBackgroundResource(R.drawable.loader_animation); //null here.
</code></pre>

<p>Why? loader_animation is the files name and it is located in drawable/</p>
