Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override camera button of Google Glass

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?

like image 754
Siddiq Abu Bakkar Avatar asked Jan 20 '14 07:01

Siddiq Abu Bakkar


1 Answers

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.

like image 90
Tony Allevato Avatar answered Sep 20 '22 23:09

Tony Allevato