Android Wear特定的通知 [英] Android Wear Specific Notification

查看:157
本文介绍了Android Wear特定的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WearableNotifications.Builder <一个href="http://developer.android.com/reference/android/$p$pview/support/wearable/notifications/WearableNotifications.Builder.html#setLocalOnly%28boolean%29">setLocalOnly方法可以用于上只有一个电话显示一通知,并且不反映到一个磨损设备。

The WearableNotifications.Builder setLocalOnly method can be used for displaying a notification on a phone only, and not mirror it to a Wear device.

有没有办法做相反的,所以创建一个通知,将磨损的设备?

Is there a way to do the opposite, so creating a notification that will display only on the Wear device?

推荐答案

有关的官方SDK按的在Android开发者佩戴的Google+页面这个问题:

For the official SDK as per this question on Android Wear Developers Google+ page:

您可以通过编写一个Android应用程序磨损上使用,你在手机上使用可穿戴相同的通知的API。如果您需要触发通知,从手机,你可以使用在谷歌游戏服务的可穿戴式API来发送消息来触发它们。

You can use the same notification APIs on the wearable that you use on a phone by writing an android wear app. If you need to trigger that notification from the phone, you can use the Wearable apis in Google Play Services to send messages to trigger them.

这篇关于Android Wear特定的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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