I created an application that works fine on devices under version 4.0, or we can say that ics, but above ics it does not work as it should. In my application, I tried to make multi-touch on two buttons at the same time, and it worked perfectly under version 4.0. The value of action_mask was 6th 5 when touched and touched .. whereas in versions above 4.0 its 1, 2, 0. why is this?
enter code here @override public boolean ontouch(Event ev , MotionEvent event) { int actionResolved = event.getAction() & MotionEvent.ACTION_MASK; int action = paramMotionEvent.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK; // int actionShift = paramMotionEvent.getAction() & MotionEvent.ACTION_POINTER_INDEX_SHIFT; Log.i("fil", "action resolved" +actionResolved); if(i==MotionEvent.ACTION_DOWN) { Log.i("fil", "action down"); Log.i("fil", "action down value" +MotionEvent.ACTION_DOWN); } if(actionResolved == 5); { Log.i("fil", "action resolved" +actionResolved); scannerview1.startAnimation(anim1); scannerView2.startAnimation(anim1); } if(actionResolved ==6) { scannerView2.clearAnimation(); scannerview1.clearAnimation(); } return true; }
source share