It is necessary to catch from the service a long press on the volume buttons. As I understand it, this is done using the reception of broadcast messages. How to implement this correctly?

    0