无需打开该应用机器人动作通知 [英] Android notifications actions without opening the app

查看:116
本文介绍了无需打开该应用机器人动作通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现JB通知操作。但它不应该打开的应用程序。该行为类似于Gmail的应用服务中删除通知操作。我怎样才能做到这一点?

I want to implement a notification action in JB. But it shouldn't open the app. The behaviour is similar to the Gmail apps delete notification action. How can I do this?

在此先感谢, Shashika

Thanks in advance, Shashika

推荐答案

经过一番研究,我设法用广播接收器来实现这一点。我张贴的例子code在这里。 <一href="http://shashikawlp.word$p$pss.com/2013/05/08/android-jelly-bean-notifications-with-actions/">http://shashikawlp.word$p$pss.com/2013/05/08/android-jelly-bean-notifications-with-actions/

After some research I managed to achieve this using a broadcast receiver. I posted the example code here. http://shashikawlp.wordpress.com/2013/05/08/android-jelly-bean-notifications-with-actions/

这篇关于无需打开该应用机器人动作通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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