At first glance, I don't see a fundamental problem with your code sketch that might cause your problem. I would check if your device is multitouch-capable. There are many free apps in the market to do this, for example yamtt. If the device supports mutitouch, it may help to debug into the onTouchEvent method or to log the event right at the start of the onTouchEvent method, just to see what's reported...
Btw. capacitive touch screen indicates the technology used to recognize touches (a different worse technology to do this are e.g. resistive screens); multi-touch means the screen an recognize multiple touches at the same time. So, that's not the same. means something different than multitouch: On 30 Nov., 22:11, John Goche <[email protected]> wrote: > Hello, > > I have posted this message before but got no repiles > so I decided to post it again because I need to detect > when a single second finger goes down while the first > one is still down on my canvas... here is my old post: > > I have an LG Optimus Net (P690) which as far as I understand > claims to support multitouch (as it sais on the following > site:http://www.mobilespecs.in/2011/10/lg-optimus-net-also-known-as-p690.html > not sure if capacitive touch screen means the same thing as > multitouch. > > However when I try the following code... > > public boolean onTouchEvent(MotionEvent event) { > > int pointerIndex = (event.getAction() & > MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT; > int action = event.getAction() & MotionEvent.ACTION_MASK; > > switch (action) { > > case MotionEvent.ACTION_DOWN: > > System.out.println("got down"); > case MotionEvent.ACTION_POINTER_DOWN: > System.out.println("got pointer down"); > > int screenX = (int) (event.getX(pointerIndex) * scaleX); > int screenY = (int) (event.getY(pointerIndex) * scaleY); > > I see the code run when I place the first finger down. When I place the > second > finger down without lifting the first one I don't see the > ACTION_POINTER_DOWN. > > Not sure what I'm doing wrong if anything. > > Thanks for your help, > > John Goche -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

