Android Out of Memory error when postInvalidate
<pre><code>private void startGameTimeElapseThread(){
    new Thread(new Runnable() {
        Date d = new Date();
        public void run() {
            while (true){
                try {
                    synchronized (this) {
                        this.wait(1000);    
                    }
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                postInvalidate();
            }
        }
    }).start();
}
</code></pre>

<p>when i execute the above method it gives me the below error.</p>

<pre><code>05-27 08:52:56.910: ERROR/AndroidRuntime(12715): FATAL EXCEPTION: main
05-27 08:52:56.910: ERROR/AndroidRuntime(12715): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
</code></pre>

<p>Does any one have any idea how to keep refreshing the screen every second without getting this error. ( in the canvas i draw a bitmap there. This says that bitmap causes this error )</p>
