简体   繁体   English

Android Wear:通过智能手机应用程序控制smartwatch应用程序

[英]Android Wear: Control smartwatch app through smartphone app

Does anyone know if it's possible to control a smartwatch app (Android Wear) through a smartphone app. 有谁知道是否可以通过智能手机应用程序控制智能手表应用程序(Android Wear)。 An example would be to switch to another page in the smartwatch app by clicking a button in the smartphone app. 一个示例是通过单击智能手机应用程序中的按钮来切换到智能手表应用程序中的另一个页面。

Yes it is possible, there are API's to communicate wearable. 是的,有可能,有一些用于交流可穿戴设备的API。 For example you can send messages between phone and wearable using the MessageApi . 例如,您可以使用MessageApi在电话和可穿戴设备之间发送消息。 Check this training page for how. 查看此培训页面以了解操作方法。 Or you can use BusWear library for sending events between phone and wearable. 或者,您可以使用BusWear库在手机和可穿戴设备之间发送事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM