Old 5th January 2011, 18:08   #1
Junior Member
Join Date: Jan 2004
Posts: 5
Wired headset button handling bug

The Android app seemingly triggers on the DOWN event of the wired headset button being pressed, and this breaks applications that offer options based on short- and long-press of this button (such as "Choice Dialer", which can launch on either a long- or a short- press on the wired headset button).

A better implementation would be to have Winamp process the UP event of the button, and then only when the time difference between the event and its preceding DOWN event fall below a threshold (such as 100 msecs), as this would equate to a short press.

This would permit other apps to respond to long presses (say, where they process the events in the same manner, and require the UP event to follow the DOWN event by AT LEAST 200 msecs).

This would make WinAmp a better neighbor in an Android phone, and users would achieved greater utility from the limited number of modeless buttons.
DulcetTone is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp for Android

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump