无需打开应用程序的 Android 通知操作 [英] Android notifications actions without opening the app
本文介绍了无需打开应用程序的 Android 通知操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 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?
提前致谢,夏色
推荐答案
经过一些研究,我设法使用广播接收器实现了这一点.我在这里发布了示例代码.http://shashikawlp.wordpress.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/
这篇关于无需打开应用程序的 Android 通知操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文