是否可以使用Google Glass拍摄照片,而无需“点按接受”? [英] Is it possible to take a photo using Google Glass without "tap to accept"?

查看:219
本文介绍了是否可以使用Google Glass拍摄照片,而无需“点按接受”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照此处的代码使用Google Glass相机拍摄图片。

I'm following the code here to capture an image with the Google Glass camera.

https://developers.google.com/glass/develop/gdk/media-camera/camera#capturing_images_or_video

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 1);

一切正常,但相机活动要求用户点击接受。有可能只是在一秒左右后拍照片?

Everything is working fine, except that the camera activity requires the user to "tap to accept". Is it possible to just take the photo after a second or so?

这是内置相机应用程序的工作原理,我只是说ok玻璃,拍照,它需要一个图片,而不需要任何额外的确认。我的应用程序中的相机已经由用户在界面中的其他语音/水龙头激活,因此此第二个确认点击是不合需要的。

This is how the built-in camera app works, I just say "ok glass, take a picture" and it takes a picture without requiring any additional confirmation. The camera in my app is already being activated by the user with other voice/taps in the interface so this second confirmation tap is undesirable.

推荐答案

您可以自行拍摄照片,而不是打开Goog​​le Glass相机应用: http://developer.android.com/training/camera/cameradirect.html

Instead of opening the Google Glass camera app, you could take the picture yourself: http://developer.android.com/training/camera/cameradirect.html

这在GDK引用中已经提到:

This is even mentioned in the GDK reference:


使用Android Camera API构建自己的逻辑。如果您使用此方法,请按照以下指南操作:

Building your own logic with the Android Camera API. Follow these guidelines if you are using this method:


  • 点击相机按钮拍摄照片,

  • 向用户指示是否拍摄了照片或录制了视频。

  • 捕获期间保持屏幕亮度。

这篇关于是否可以使用Google Glass拍摄照片,而无需“点按接受”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆