how to disable the touch listener for some duration
<p>i have a code which has set of buttons listening for touch events.</p>

<p>for (int i = 0; i &lt; mybtn.length; i++)
 {</p>

<pre><code>        String btnid = "btn" + i;

        int resid = getResources().getIdentifier(btnid, "id",
                getPackageName());

        mybtn[i] = (Button) findViewById(resid);

        mybtn[i].setOnTouchListener(this);
</code></pre>

<p>}</p>

<p>But i am also using the tts engine and i need to synchronize the speaking events with the touch events. for that purpose i need to disable the touch listener for the buttons for some duration and should enable them after my work is done. please tell me how can i do this? i want to write a method which can enable and disable touch events as per my requirements.</p>
