是否有可能有一个通知,展示了Android的磨损设备和移动设备?
Is it possible to have a notification that shows a different text (content title and content text) in the Android wear device and in the mobile device?
目前不。但是,可以实现这样的效果,在以下方式:
Not at the moment. However, you can achieve this effect in the following way:
后在手机上的通知与 setLocalOnly(真)
发表的DataItem
使用 DataAPI
描述的通知和更改的文本
当耐磨收到的DataItem
,后用不同的文字通知,再次设置 setLocalOnly(真)
在每个通知ALSE调用 setDeleteIntent
让你知道,当有解散
当上了通知被辞退,从点2 delte的的DataItem
。
在的DataItem
被删除,您将收到一个回调;删除剩余的通知
post a notification on the phone with setLocalOnly(true)
post a DataItem
using a DataAPI
that describes the notification and changed text
when the wearable receives the DataItem
, post the notification with different text, again setting setLocalOnly(true)
on each notification alse call setDeleteIntent
so you know, when there are dismissed
when on of the notifications gets dismissed, delte the DataItem
from point 2.
when the DataItem
gets deleted, you will receive a callback; delete the remaining notification
可能有一些角落情况下,在这里,我没有立即看到,但一般的做法应该让你实现你想要的。
There might be some corner cases here I don't see immediately, but the general approach should allow you to achieve what you want.
上一篇:在的ShowDialog按钮列表视图适配器适配器、视图、按钮、列表
下一篇:与ZipInputStream错误UTFDataFormatException解压文件错误、文件、ZipInputStream、UTFDataFormatException