My android phone (Samsung Spica i5700) got a button on the side which locks the screen.
When the screen lock is active, you can still press the keys on the phone which is pretty annyoing. Especially the end-call button, when it's pressed for a while you get an option screen which says "Silent mode, Airplane mode and Power off". And when the phone is in your pocket it's really easy to accidentally enter airplane mode for example.
How can i make an application which locks the keys (or just end-call key) while the screen is locked?
I've tried to catch the KEYCODE_ENDCALL key and then discard the message but it doesn't seem to work to catch that keycode..
Any ideas? :)