I wrote the following code I cannot understand what is wrong with it. It is not capturing MotionEvent.ACTION_POINTER_DOWN.
public boolean onTouch(View vk,MotionEvent me)
{
if(me.getActionMasked()==MotionEvent.ACTION_DOWN)
{
start_pinch=1;
tv.setBackgroundResource(R.drawable.shape);
}
if(me.getActionMasked()==MotionEvent.ACTION_POINTER_DOWN)
{
Toast.makeText(MainActivity.this,""+start_pinch,
Toast.LENGTH_SHORT).show();
}
return true;
}