OK, your yamtt results mean that your device supports multitouch, but only two simultanious touch points. For your purpose, that should be enough.
I might be wrong, but do you return true as the methods result? If not, do so. On 1 Dez., 19:07, John Goche <[email protected]> wrote: > Thank you for your reply, > > I downloaded and installed yamtt (Yet Another MutltiTouch Test) from > Android Market. When I place the second finger down it's detected but > not when I place the third one down. Still not sure what I'm doing wrong > in my code... > > On Thu, Dec 1, 2011 at 10:41 AM, al <[email protected]> wrote: > > 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... > > Not sure about what to do. I have tried with System.out.println() statements > but I don't see the ACTION_POINTER_DOWN which should result in a > single printf statement since there's no break statement in the code. > > > 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: > > Thanks for the clarification, > > I would be satisfied if I could get the second finger going down detected. > > Any ideas? > > John Goche > > > > > > > > > > > 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 -- 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

