For Google Glass app I need to override the shortcut button of camera in google glass.
Let me explain the scenario : Google glass have shortcut camera button which help to capture image faster. After capturing the image that can be shared via email and other options. For project requirement when application is running I need to make the camera button not accessible by user so that user will not able to capture and send image to anyone else.
How to achieve this options inside the application?
If your application is based on an immersion, have your activity override the onKeyDown
method and return true
when the key code is KEYCODE_CAMERA
. This will cause Android to bypass the built-in camera.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With