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?

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.


Need Your Help

Passing arguments to views in ASP.NET MVC?

asp.net-mvc

I've been experimenting with ASP.NET MVC and following this tutorial to create the basic task list application. I've gotten it running fine, everything is working although the video is in VB and I ...

Why does adding a reference to project targeting .NET Framework 4.0 fail?

.net visual-studio visual-studio-2010 .net-4.0

We have two projects that are both class libraries. Project 1 is a VS 2008 project and targets the .NET Framework 3.5. Project 2 is a VS 2010 (release candidate) project that targets the .NET Frame...