I am building a Panic Alert App on Android for which I want a service to run in background and is acquiring Partial-Wake-Lock to run even when screen is off. I want this service to listen for volume key(or combination of power & volume key) press for 3secs or more to start the service sending panic messages.
Is it possible to listen key events by binding my service to any other system service? Or, is there any other way to achieve my goal?