Due to a lot of requests I received on "How to lock keys - back, home...etc. - on Android mobile phones" I decided to create this article, kind of tutorial to explain how this is possible.
The idea is to catch an event. This event is a key which has been pressed down. Once you get the event, you need to identify which key has been pressed down, and assign an action to this event. Of course, if you want to lock the keys, the assigned action will be "do nothing".
First of all, you need an Activity, in which you just add the following method :