Detect if user has painted the whole screen
<p>I'm letting the user to do painting in my app.The app will show some options on the screen once the whole screen is painted.</p>

<p>I'm thinking to keep an array of screen pixel eg. <code>pixel = new int[width][height];</code> and mark it whenever the pixel is painted, but I guess this is a bad solution to my problem. </p>

<p>Is there a way to detect if the user has painted the whole screen? </p>

<pre><code>@Override
public boolean onTouchEvent(MotionEvent ev) {
    switch (ev.getAction()) {
    case MotionEvent.ACTION_DOWN: {
        X = (int) ev.getX();
        Y = (int) ev.getY();
        break;
    }
    case MotionEvent.ACTION_MOVE: {
        X = (int) ev.getX();
        Y = (int) ev.getY();
        break;
    }
    return true;
}
@Override
public void onDraw(Canvas canvas) {
    super.onDraw(canvas); 
    canvas.drawCircle(X, Y, 50, paint);
}
</code></pre>
