Skip Track with Volume Buttons.
Guaranteed to work the following player: Android Music, Google Play Music, PowerAmp. For correct operation of the other players author not responsible!
The author is also not responsible for the correct work not on firmware other than pure Android!
This program is designed for skip tracks in a running music player and screen off the device by double clicking on the volume buttons.
The program allows you to choose the most suitable for your delay between clicks.
For skip on the next track, you should produce two click on the "volume up" button with delay no more than specified in the "Delay between clicks". Correspondingly prev track - "volume down" button.
!!! The Programm only works when the played music in player and screen is turned off. Crossfade feature in player MUST BE DISABLED. On HTC's stock firmware maybe not work (Turn off smooth volume change if it's possible) !!!
May not work with some devices.
Garanted works with players:
- PowerAmp (recomended)
- Google Play Music
Should work with players who are able to work with the media buttons on headsets
The switching function over the long ckick is not implemented, because Android API does not include methods for listening to events on the volume button.
The program monitors the volume, it does not catch PHYSICAL keystrokes.
Long press is implemented in the firmware vendor (manufacturer of the device) or rom-makers. This is implemented in CyanogenMod and some custom roms for SGS2 and SGS3 (http://forum.xda-developers.com/showthread.php?t=1770564). Also you can try use Xposed Framework (http://forum.xda-developers.com/showthread.php?t=1574401) with module.
Due to the nature of the change in volume on some devices / firmware program may not behave correctly on the appropriate device.