从意图在新的视频群聊Android应用程序启动谷歌视频群聊

问题描述:

有previous在这里讨论有关从Android的意图开始谷歌视频群聊: start谷歌视频群聊在Android的

There are previous discussions here regarding starting a Google Hangout from an intent on Android: start google hangouts in android

How我可以开始一个谷歌视频群聊在Android中使用的意图是什么?

的结论是,这是不可能的。这是一个要求增强在这里: 的https://$c$c.google .COM / P /谷歌加平台/问题/详细信息?ID = 385

The conclusion was that this was not possible. It is a requested enhancement here: https://code.google.com/p/google-plus-platform/issues/detail?id=385

不过,昨日谷歌发布了一个新的环聊应用,一套新的意图的。开始通过意图住处,现在可能吗?

However, yesterday Google released a new Hangouts app, with a new set of intents. Is starting a hangout via intent now possible?

我已经部分成功与行动= android.intent.action.VIEW 数据=内容://plus.google.com/常去玩的地方

不过,我想通过我要呼叫的人的姓名或ID - 收件人的名字。我不知道这一点。

However, I want to pass the name or ID of the person I want to call--the recipient name. I can't figure this out.

新的基于浏览器的应用程序住处启动一个聚会的场所的URL是这样的:

The new browser-based hangout app starts a hangout with a URL something like this:

https://plus.google.com/hangouts/_/CONVERSATION/[26-character ID]?hl=en_US&hscid=[19-digit ID]&hpe=[14-character value]&hpn=[Google+ Name of Recipient]&hnc=0&hs=41.

我认为不是所有的参数都需要启动一个聚会的场所,但我无法破译如何通过在意向收件人的姓名。

I assume that not all of these parameters are necessary to start a hangout, but I cannot decipher how to pass the recipient name in the intent.

有什么想法? 谢谢你。

Any thoughts? Thank you.

所以,我不知道这是否可以帮助别人,因为我主要是寻找断火使用塔斯克的意图。如果你进入的Google+>设置>你可以勾选保持接触最新的,它会增加一些新的行动,当你点击在Android的用户出现卡。然后你可以使用意图拦截读未来通过的值。这是我得到的答案:

So I don't know if this helps anyone else because I was mostly looking to fire off an intent using tasker. If you go into Google+ > Settings > Contacts you can check "Keep contacts up to date" and it will add some new actions to card that appears when you click on a user in android. Then you can use Intent Intercept to read the values coming through. Here's what I got:

ACTION: android.intent.action.VIEW
DATA: content://com.android.contacts/data/5555
TYPE: vnd.android.cursor.item/vnd.googleplus.profile.comm

FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
FLAG_ACTIVITY_PREVIOUS_IS_TOP

1 ACTIVITIES MATCH THIS INTENT:
Hangouts (com.google.android.talk - com.google.android.apps.babel.phone.BabelProfileActionActivity)

我能够使用前三个值正常打开与该联系人的对话。显然,这取决于接触你的数据字段的数量会发生变化。您可以使用的伎俩,意图拦截,或者如果你有根,您可以使用类似的 SQLite的调试破解的联系人数据库打开数据表,下面的语句找出MIMETYPE_ID = 16和DATA4 = 10。你必须要找到你了你RAW_CONTACT_ID是什么了。祝你好运!

I was able to use the top three values to properly open a conversation with that contact. Obviously the number in your data field will change depending on the contact. You can either use the trick with Intent Intercept, or if you have root you can use something like SQLite Debugger to crack open the data table in the contacts database and find rows where the MIMETYPE_ID = 16 and the DATA4 = 10. You'll have to find your out what your RAW_CONTACT_ID is too. Good luck!