Android: is it possible to remove a system-managed notification programmatically?

与世无争的帅哥 提交于 2019-12-18 08:59:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/16019868/android-is-it-possible-to-remove-a-system-managed-notification-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!