手持打开相应的应用,而无需从Android穿戴通知(齿轮生活) [英] Open corresponding app on Handheld without notification from Android Wearable (Gear live)
问题描述
我想开发的可穿戴式至极的应用程序应该能够到我的手持设备上启动应用,而不通知的标准(设备上打开)的行动。
它应该在手持设备上启动应用程序,即使手持式应用是在瞬间关闭。有一个解决方案,以实现这一目标。我不能在文档中找到它。
如果我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.
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屋!