简体   繁体   中英

OnTouchListener, ACTION_UP fires automatically after 30 second timeout

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM