如何从Google Glass中的卡片启动意图

Raf*_*gno 5 android google-glass google-mirror-api

我试过这个应用程序,Crystal Shopper:

https://crystalshopper.herokuapp.com/

这似乎能够从卡开始申请.

正如您在此屏幕截图中看到的那样

https://crystalshopper.herokuapp.com/static/images/barcode_search.png

似乎有一个叫做的命令

crystalshopper://开放

来源似乎不可用,所以我必须推断......

假设这只是一个动作,它通过镜像API告诉服务器向设备发送一个特殊通知,由BroadcastListener检测到,然后启动所需的Intent,这是正确的吗?

Ton*_*ato 3

如果 Glass 上安装的 APK 注册了自定义 URI 方案,Mirror API Glassware 可以通过使用带有操作的菜单项来启动它OPEN_URI。将菜单项的属性设置payload为自定义 URI,点击时它将启动相应的活动。