I'm aware that this is a commonly asked question, but most questions are quite old, and I was hoping that the situation has changed.
I am looking to activate an application feature from the phone's locked state by pressing the volume up button five times in a row, without having to resort to using a wakelock. This feature should be activatable at any time using the volume while the phone is locked.
I have observed that some phones are able to detect volume button presses (e.g. two volume down presses will load the Camera application), but I have not been able to find out how these apps do it. I figured that if these phones are able to do it, then surely what I'm trying to do is possible?