Answer the question
In order to leave comments, you need to log in
How to block hardware buttons in services (Android)?
There was a need to write an alarm clock application. In this connection, the question arose - is it possible to somehow block the hardware buttons in Android.
Through keyEvent it is possible to block in Activity. And that's not all. Is it possible to block everything without Activity ?
Answer the question
In order to leave comments, you need to log in
You definitely won’t block all the buttons, why not start an Activity ? All alarm clocks I've seen do this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question