OnTouchListener not working
<p>I have a few buttons in a tab layout for which the OnClickListener works fine. The purpose of these buttons is to start a new activity when clicked upon. I want my code to work for the touch mode of the phone as well. In other words I wanted to know how to implement the OnTouchListener for the code. Currently I have something like </p>

<pre><code>public boolean onTouch(View v, MotionEvent event) {
  startActivity(new Intent().setClass(this, OtherActivity.class));
  return true;
}
</code></pre>

<p>I am just thinking about it the same way as I would think about the onClick() method but apparently I am wrong. </p>

<p>Any help in this matter would be appreciated. 
Thanks! </p>
