如何NodeAPI在谷歌播放服务工作? [英] How does NodeAPI in Google Play Services work?

查看:298
本文介绍了如何NodeAPI在谷歌播放服务工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到节点通过getNodes中的在GooglePlayServices NodeAPI

I was trying to find the list of Nodes via getNodes() method in NodeAPI in GooglePlayServices.

我有一个LG G观看现场直播,人们的Samsung Gear 2(Tizen OS)和一个谷歌眼镜。

I have one LG G Live watch, one Samsung Gear 2 (Tizen OS) and one Google Glass.

我的LG G腕表拥有与同伴APP(通过<一个连接href=\"https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient\"在电话相对=nofollow> GoogleAPIClient )(三星S4)。我有一个应用程序,它检查是否手表与手机连接,如果连接不上,通知用户大致相同。我使用getNodes()方法为这个,我连玻璃和齿轮与手机,我的玻璃和齿轮管理器(就是这样)。我是)在IM pression的玻璃和齿轮也将显示在getNodes得到(列表下,但只有g活排在列表中。

My LG G Watch has a connection with a companion APP (via GoogleAPIClient) on phone (Samsung S4). I have one application which checks if the watch is connected with phone, and if not connected, notify user about the same. I was using getNodes() method for this, and I connected glass and gear with phone with "My Glass" and "Gear Manager" (that's it). I was under the impression that both glass and gear would also get shown in getNodes() list, but only G Live came in the list.

所以,现在,我认为,设备必须与GoogleApiClient进行连接,电话(通过配套应用),以显示它作为一个节点。那东西说,如果我用手机通过GoogleApiClient但在其他不同的配套应用在手机连接什么玻璃/ Tizen。难道那么它显示为一个节点?这使我最初的问题,我们如何界定谷歌节点播放服务?而如果要让他们为节点,我将如何检测,如果它是一个手表或玻璃或齿轮(我能为这个问题上注册的设备,但我想避免这种情况),我试过getDisplayName()和的getId()但都返回同样的事情也就是节点的UUID。

So, now, I think that device must be connected with GoogleApiClient with phone (via a companion App), in order to show it as a node. That thing said, what if I am connecting Glass/Tizen with phone via GoogleApiClient but in other separate companion App on phone. Would it then show it as a node? Which brings me to the initial question, how do we define nodes in Google Play Services? and If it'll show them as nodes, how would I detect if it is a watch or glass or gear ( I can register devices for this issue, but I want to avoid that), I tried getDisplayName() and getId(), but both return same thing i.e. UUID of the node.

推荐答案

遗憾地告诉你的男人,但谷歌发挥服务,不为玻璃工作,但我看了你的问题,我想你要检查你的玻璃/手表连接移动与否,尽量让通过插座玻璃和唯一ID会来的蓝牙连接。虽然腕表继续与播放服务。

Sorry to tell you man but google play services dont work for glass, but as I read your question i think you want to check if your glass/ watch is connected to the mobile or not, try to make bluetooth connection via socket for glass and unique ID would come. While for watch go ahead with play services.

我希望它能帮助。

这篇关于如何NodeAPI在谷歌播放服务工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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