如何获取现在显示的所有系统通知?

发布于 2024-09-25 01:50:35 字数 51 浏览 2 评论 0原文

我怎样才能获得现在显示的所有系统通知?我想编写一个程序,可以拦截其他应用程序通知的通知。

how can i get all the system notifications that are shown now?i want to write a programe that can intercept the notifications that other apps notified.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜心 2024-10-02 01:50:35

您无法干扰其他应用程序通知,因此无法编写此类应用程序。

You cannot interfere with another appliactions notifications so it will not be possible to write such application.

秋叶绚丽 2024-10-02 01:50:35

来自 Android 初学者 Google 小组的此帖子回答了这个问题坚定的“不”。引用线程中的用户:

不,抱歉。拦截通知,
特别是,将是相当
安全漏洞。一般来说,关于
Android,一个应用程序看不到或
与另一个应用程序混淆
东西。所以,虽然您想要的功能
对于操作系统来说会很有趣
就其本身而言,它们不会非常
切实可行地实施
写入 SDK 的应用程序。

This thread from the Android Beginners Google group answers the question with a solid "No." Quoting a user from the thread:

No, sorry. Intercepting notifications,
in particular, would be quite the
security loophole. In general, on
Android, one application cannot see or
mess with another application's
stuff. So, while your desired features
would be interesting for the OS
itself, they aren't going to be very
practical to implement in an
application written to the SDK.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文