title: PNG compression for live wallpapers in Android
body: <p>I'm trying to create a live wallpaper in Android but am having trouble with the PNG that I use for the background. When I slide home screens the transition is very laggy. My background PNG is 1024x576px 96dpi 1.01MB photo. It also has a transparent region. </p>
  
  <pre><code>c.drawBitmap(BitmapFactory.decodeResource(getResources(),
                  R.drawable.foreground),mX,mY,null);
  
  
  c.translate(mX, 0f);
  </code></pre>
  
  <p>I use this code for loading and translating the PNG.</p>
  
  <p>What's the best to compress this PNG, or do I need to code it differently?</p>