Android 佩戴蓝牙 RFCOMM API

Android Wear Bluetooth RFCOMM API

今天我开始研究 Android Wear 与通用 Windows 平台的连接(主要关注 Windows Phone)。主要目的是从我的应用程序发送通知以通过它观看和控制 phone 上的音乐。由于互联网上没有任何解决此问题的方法,因此我在 reddit 上只有 6 秒的 Lumia 950 使用 Windows.Devices.Bluetooth.Rfcomm 向智能手表发送通知的视频。 智能手表有API蓝牙服务吗?所以我可以简单地创建一个至少从 phone 开始观看的套接字?提前致谢。

不幸的是,根据这个forum : Android wear does not currently support Windows Phone Operating system. You might want to check if your device is compatible to pair with Android Wear. But to answer your "Is there any API to send notifications from my app to watch and control music on phone from it", Yes there is. You might want to read about the documentation - Sending and Syncing Data

The Wearable Data Layer API, which is part of Google Play services, provides a communication channel for your handheld and wearable apps. The API consists of a set of data objects that the system can send and synchronize over the wire and listeners that notify your apps of important events with the data layer.

这是一个有用的blog that talks about the capabilities of Android Wear and Media playback controls MediaSession, MediaController

希望对您有所帮助。