aspose file tools
The moose likes Android and the fly likes Bizare touch-event problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Bizare touch-event problem" Watch "Bizare touch-event problem" New topic

Bizare touch-event problem

Stephen Bell
Ranch Hand

Joined: May 11, 2013
Posts: 39
Hey guys, really hope someone can help with this, it's been driving me crazy all day and I can't figure it out. I actually found it completely by accident while testing my app's controls....

I have a left and right button on the left of the screen and a jump button on the right.

Everything works as it should but if I touch a large area of my hand (the fleshy part at the base of the thumb for instance) onto the screen, then release it and then press one of my arrows, the sprite moves in that direction for a few seconds, and then ACTION_UP is mysteriously triggered. The sprite stops and then if I release my finger and re-apply it to an arrow, the same thing happens. This goes on and on and eventually (randomly??) stops and everything work OK again.

Really odd. I've removed ACTION_POINTER_UP and ACTION_POINTER_DOWN along with ACTION_MOVE. So I'm just using ACTION_UP and ACTION_DOWN.

Anyone come across this or anything like it? My test device is a Google Nexus 10 tablet running JB 4.2.2 - not sure if the device or OS version is the issue, I will test on an old Gingerbread handset in the next day or so.

Any comments more than welcome - cheers!
jQuery in Action, 2nd edition
subject: Bizare touch-event problem