title: How to start Animation immediately after onCreate?
body: <p>I am following <a href="http://developer.android.com/guide/topics/graphics/view-animation.html#frame-animation" rel="noreferrer">http://developer.android.com/guide/topics/graphics/view-animation.html#frame-animation</a> with minor changes. I have decided to make the animation loop and want it to start from the get-go.</p>
  
  <p>My animation is at drawable/listening.xml:</p>
  
  <pre><code>&lt;animation-list
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:oneshot="false"&gt;
  &lt;item
      android:drawable="@drawable/l_01"
      android:duration="200" /&gt;
  &lt;item
      android:drawable="@drawable/l_02"
      android:duration="200" /&gt;
  &lt;item
      android:drawable="@drawable/l_03"
      android:duration="200" /&gt;
  &lt;/animation-list&gt;
  </code></pre>
  
  <p>and my init code:</p>
  
  <pre><code> @Override public void onWindowFocusChanged(boolean hasFocus)  { 
        super.onWindowFocusChanged(hasFocus); 
        animImg = (ImageView)findViewById(R.id.listen_anim);
        animImg.setBackgroundResource(R.drawable.listening);
        anim = (AnimationDrawable) animImg.getBackground(); 
        anim.start();
   };
  </code></pre>
  
  <p>All I see is the first frame and no other images.</p>