Using OnDraw() Function in Android Conditionally
<p>I want to know if we can  call Ondraw() method of Android conditionally based on some flag. For example <code>ondraw()</code> should be called only when a particular frame is decoded.</p>

<p>Consider this situation:</p>

<pre><code>decoder();  /// @NDK 

set flag;   

if (Flag==set)

{

OnDraw() works and displays an image

}       

else

OnDraw sleeps;
</code></pre>

<p>Can we implement such type of activities in Android, if yes then how?      </p>
