when i try to change the screen color from black, i use the command drawARGB once, and i intend it to stay that color i asked, and other drawings will occur on top of it, but it only shows once, for a split second, and turns black again...
here is the code, if u wonder it all works fine, other than the drawARGB...
this is part of a live wallpaper.
public void drawFrame() {
// TODO Auto-generated method stub
c = null;
try {
c = holder.lockCanvas();
if (c != null) {
// draw something
height = c.getHeight();
width = c.getWidth();
drawScreenColor();
frame++;
}
} finally {
if (c != null) holder.unlockCanvasAndPost(c);
}
mHandler.removeCallbacks(mDrawStrip);
if (clearToRun) {
mHandler.postDelayed(mDrawStrip, 1000 / 60);
}
}
void drawScreenColor() {
if (isFirstFrame) {
c.drawARGB(255,255,0,0);
isFirstFrame = false;
}
}