无需打开应用程序的 Android 通知操作

编程入门 行业动态 更新时间:2024-10-25 20:26:53
本文介绍了无需打开应用程序的 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 通知操作

本文发布于:2023-11-27 03:27:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636379.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   操作   通知   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!