本文介绍了无需打开应用程序的 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?
提前致谢,夏色
推荐答案经过一些研究,我设法使用广播接收器实现了这一点.我在这里发布了示例代码.shashikawlp.wordpress/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. shashikawlp.wordpress/2013/05/08/android-jelly-bean-notifications-with-actions/
更多推荐
无需打开应用程序的 Android 通知操作
发布评论