获得连接smartwatches的电池电量 [英] Get battery level of connected smartwatches

查看:141
本文介绍了获得连接smartwatches的电池电量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能得到连接smartwatches的电池水平的耐磨API的一部分? (preferably无需部署的实际磨损组件到的SmartWatch然后连通手表和设备之间来回控制,等)。我已经看到了一些磨损的应用程序,显示在手表本身手表的电池电量,但我只是想找出表的的当前电池电量使用手机的。

Is it possible to get the battery level of connected smartwatches as part of the Wear API? (Preferably without having to deploy an actual wear-component onto the smartwatch and then communicating back-and-forth between the watch and the device). I've seen some wear-apps that show the battery level of the watch on the watch itself, but I'd simply like to find out the current battery level of the watch using the phone.

推荐答案

你更可能会需要一个磨损的应用程序,但它应该是很容易的。

You're more than likely going to need a wear app, but it should be very easy.

在可穿戴,做一个 WearableListenerService 。有手机应用程序发送消息(使用消息APi的) 。这将启动 WearableListenerService 上的手表。有手表拿到它的电池信息,并用另一条消息回发到手机上。

On the wearable, make a WearableListenerService. Have the phone app send a message (using the Message APi). This will start the WearableListenerService on the watch. Have the watch get it's battery information and send it back to the phone using another message.

这篇关于获得连接smartwatches的电池电量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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