title: How to stop calling the onDraw() function on a View?
body: <p>Im clearing up the bitmaps i load in one activity before i more into the other activity. </p>
  
  <p>eg:</p>
  
  <pre><code>pic1 = null;
  System.gc();
  nextActivityIntent = new Intent(ThisActivity,NextActivity.class);
  ThisActivity.startActivityForResult(nextActivityIntent,123);    
  </code></pre>
  
  <p>But the problem is system calls onDraw some times after i call "pic1=null". When it happens the application crashes with pointing a NullPoint Exception.</p>
  
  <p>Cab any one suggest me how to stop calling onDraw() after setting the "pic1=null". Can i use synchornized to make this happen.  </p>