FORUMS
Remove All Ads from XDA

Wired Headset Button Events

474 posts
Thanks Meter: 152
 
By joshiameya, Senior Member on 13th February 2020, 06:45 PM
Post Reply Email Thread
Hi,

I am trying to understand, how android os or audio layer interprets 2 taps of button A as skip to next track event. Here is the website for reference

https://source.android.com/devices/a...ected-behavior

When user presses the middle button on wired headset, the os will receive

Keyevent ACTION_DOWN, KEYCODE_MEDIA_PLAY_PAUSE

keyevent ACTION_UP, KEYCODE_MEDIA_PLAY_PAUSE

twice in sequence and somehow that gets converted to MEdia_next event so that players like vlc skip to next track in the Playlist

I don't think it's the app doing anything but the os in the middle interpretating those events in sequence as next event.

Can someone help me where should I look

Regards
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes