title: How to load animation-lists with Picasso?
body: <p>I get out of memory exceptions when loading images into my app. I integrated Picasso to load images, but the code below is not working with an animation-list for an AnimationDrawable. The animation is null:</p>
  
  <pre><code>Picasso.with(this).load(R.drawable.qtidle).into(qtSelectButton);
  qtIdleAnimation = (AnimationDrawable)qtSelectButton.getDrawable();
  if (qtIdleAnimation != null)
      qtIdleAnimation.start();
  </code></pre>
  
  <p>The AnimationDrawable works, if I use this code without Picasso:</p>
  
  <pre><code>qtIdleAnimation = new AnimationDrawable();
  qtIdleAnimation.setOneShot(false);
  for (int i = 1; i &lt;= 7; i++) {
      int qtidleId = res.getIdentifier("qtidle" + i, "drawable", this.getPackageName());
      qtIdleAnimation.addFrame(res.getDrawable(qtidleId), 100);
  }
  qtSelectButton.setImageDrawable(qtIdleAnimation);
  if (qtIdleAnimation != null)
      qtIdleAnimation.start();
  </code></pre>
  
  <p>But this code causes the out of memory exceptions. Is it possible at all to load animation-lists with Picasso?</p>