gpt4 book ai didi

Android:如何检查应用程序是否有新的内部通知(ticker)?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:35:50 30 4
gpt4 key购买 nike

我不想阅读状态栏通知,我已经知道如何使用以下教程来做到这一点:

http://www.androiddevelopersolutions.com/2015/05/android-read-status-bar-notification.html

大多数启动器显示一个代码(红色圆圈或数字),表示应用程序(如 Facebook、电话、消息等)有未预览的通知,这在通知面板中不可用。

如何实现?如何找到一个应用程序(使用它的包名称/Activity 名称)有一个 Activity 的内部通知?

最佳答案

圈子/数字的名称是徽章。来自 Android Developers :

notification badges (also known as notification dots) appear on a launcher icon when the associated app has an active notification

因此,徽章似乎会出现在 NotificationListenerService 中(如您提供的链接中所述),因为它们基于“真实”通知。

关于Android:如何检查应用程序是否有新的内部通知(ticker)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52345459/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com