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.
c.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.foreground),mX,mY,null); c.translate(mX, 0f);
I use this code for loading and translating the PNG.
What's the best to compress this PNG, or do I need to code it differently?