1

Is it possible that a service can catch hardware key pressed events?

view story
linux-howto

http://stackoverflow.com – I am building an android application that when the power button is pressed a number of times, it will send an SMS. The application will run as service, and if the power button is pressed a number of times it will send an SMS alert. Is it possible that the service can catch hardware key pressed events? (HowTos)