本文介绍了安卓:是否有可能以编程方式删除系统管理的通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了配置VPN配置文件,并连接到它的应用程序。当我接,我想显示只是我的通知,但是Android提供了一个VPN连接的生命周期中显示出其自身的通知。

I've made an application that configure a vpn profile and connects to it. When I'm connected, I want just my notification to be shown, but android provides its own notification that is shown during the lifetime of a VPN connection.

反正是有删除的通知,或者,至少,从屏幕顶部删除相应的图标?

Is there anyway to "delete" that notification, or, at least, to delete the corresponding icon from the top of the screen?

推荐答案

这是不可能的,在Android上遗憾。

This is not possible on Android, sorry.

您不能对自己的应用程序外控制的通知,无论它们是否属于其他第三方应用程序或系统。只有你自己的通知,可以由您进行更新或开除。

You cannot control notifications outside of your own app, regardless of whether they belong to another third party app or the system. Only your own notifications may be updated or dismissed by you.

这篇关于安卓:是否有可能以编程方式删除系统管理的通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-08 07:58