I want to use my own camera modul at the Samsung Galaxy Camera EK-GC200. I can get a keycode for both buttons, but capture button always opens his own camera intent which then of course collapes with my own camera modul. Also zoom buttons always show some slide-popup when used.
Meanwhile I found some topics that some people were able to block the HOME button on their devices. But seems this is not usable for the camera buttons.
So is there any way to block the hardware buttons so at least the camera capture button doesn't open its own camera intent anymore ?
In your
MainActivity.java
(or some other activity), paste the following:If you also want to intercept the return button, do:
The
HOME
button can not be intercepted in this manner.Hope this helps.