谷歌护目镜意向护目镜、意向

2023-09-04 04:22:12 作者:扯淡、的生活

可能重复:   谷歌眼镜API

据谷歌,护目镜现在支持通过意图吧code扫描。 所以,我怎么会推出这个意图是什么? 除了它被提及在App Store网站也没有任何信息:(

According to Google, Goggles now supports barcode scanning via intents. So how would I launch this intent? Apart from it being mentioned on the app store site there's no info whatsoever :(

我失去了一些小事吗?

推荐答案

有多种方式,根据该护目镜舱单

There are a number of ways, according to the Goggles manifest.

该应用程序侦听以下意图:

The app listens for the following intent:

Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivity(intent);

这是在code,你要寻找的,这基本上是通过的 ZXing 。

This is the code you're looking for, which is basically the same information provided by ZXing.

顺便说一句,你也可以使用一个具有path的VIEW意图 http://www.google.com/m/products/scan 尽管这将提供两个浏览器和护目镜作为处理程序的URI。此网页实际上是建议安装zxing的酒吧code扫描仪,而不是谷歌护目镜。

As an aside, you can also use a VIEW intent with path http://www.google.com/m/products/scan though this will offer both the browser and Goggles as handlers for the uri. This webpage actually recommends installing zxing's barcode scanner rather than Google Goggles.