One word for you: Tasker.
Thanks for the info.
I'm now trying to configure this. Does anyone know if these hardware events supported?
1) Long pressing of volume +
2) Long pressing of volume -
3) Very long pressing (alternatively double/triple pressing) of home button. (Note: In iOS, Activator could differentiate between long pressing and "even longer" pressing of home button. I'm not sure if there is something similar in Android)
I only see the camera button (which does not exist for Note 2), and Long search.
What I like to do with Tasker are as follows:
Regardless of whether my music/video player is in the foreground, background, or the device switched off,
a) When "very long" pressing (or double/triple pressing) the home button (just realised that long pressing of home button is already used), I want to toggle between pause and resume playing
b) When long pressing the volume + button, I like to skip to the next song/next video
c) When long pressing the volume - button, I like to go back to the previous song/video.
Any help on this would be greatly appreciated. Thanks.