4

I need the user to be able to touch and hold a button/imageview for a long time (> 30 seconds). unfortunately after ~30 seconds an ACTION_UP is fired automatically. Do you have any idea how i can prevent or bypass this event and keep tracking the users touch?

This is essential for the control of my app.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Goddchen
  • 4,459
  • 4
  • 33
  • 54
  • Is your screen going to sleep? You may have to implement a wakelock or prevent the screen from going off. – Falmarri Nov 12 '10 at 20:17
  • no screen is on all the time it's not a sleep issue. – Goddchen Nov 12 '10 at 21:05
  • i found out that i only experience this behaviour on my motorola milestone phone. in the emulator this "timeout" does not occure. – Goddchen Nov 12 '10 at 21:15
  • @Goddchen, I have noticed the same behavior on some phones. the timeout occurs at varying lengths depending on the phone it seems. I have tested with a Motorola Atrix, Motorola Droid 2 Global as well as an HTC 4G. The ACTION_UP event fires up after some time. Did you ever find a solution to this ? –  Jul 27 '11 at 21:06
  • The same happens on Motorola XT720. Is there any solution to this? – Dmitry Sep 06 '11 at 14:46
  • 1
    it seems to be some kind of "prevent-ghost-click-events" feature of the actual touchscreen driver. After some timeout it fires the ACTION_UP event on it's own for any "ghost" click events... – Goddchen Apr 07 '12 at 12:10
  • Did you find any work-around? This is happening on my Samsung Galaxy Tab 3 and after the ACTION_UP incorrectly fires after 20 seconds, there is no further event when the user really does lift their finger from the screen. And there's nothing in Logcat that could be used to detect this either... – Mr. Bungle Nov 03 '14 at 11:32

2 Answers2

1

At least for Motorola Xoom, as posted in Motorola Forum , Engineering team seems to consider this problem a feature.

There is a possible solution there(for Xoom), don´t know if works.

Jonaias
  • 375
  • 3
  • 10
1

It happens on my motorola me525 also,only last 20 seconds. I advise you use a layout(for example linearlayout)instead of button or imagebutton layout can be pressed for a long time as you want