手持打开相应的应用,而无需从Android穿戴通知(齿轮生活) [英] Open corresponding app on Handheld without notification from Android Wearable (Gear live)

查看:171
本文介绍了手持打开相应的应用,而无需从Android穿戴通知(齿轮生活)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发的可穿戴式至极的应用程序应该能够到我的手持设备上启动应用,而不通知的标准(设备上打开)的行动。
它应该在手持设备上启动应用程序,即使手持式应用是在瞬间关闭。有一个解决方案,以实现这一目标。我不能在文档中找到它。
如果我overread,在官方的文档,请张贴链接。

I would like to develop an app on the wearable wich should be able to launch an app on my Handheld device, without the notification standard ("open on device") action. It should start the app on the handheld, even if the Handheld App is closed at the moment. Is there a solution to achieve this. I can't find it in the documentation. If I overread that in the official doc., please post a link.

推荐答案

要做到这一点,你必须使用的可穿戴数据层API

To do that, you have to use the Wearable Data Layer API.

使用消息API 从Android Wear设备到手持设备的之一。在<一个href=\"http://developer.android.com/reference/com/google/android/gms/wearable/WearableListenerService.html\"相对=nofollow> WearableListenerService掌上电脑的应用程序就可以发动一个意图来打开应用程序。

Just send a message using the Message API from the Android Wear device to the handheld's one. The WearableListenerService of your handheld app can then launch an Intent to open the app.

这篇关于手持打开相应的应用,而无需从Android穿戴通知(齿轮生活)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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