user1071138
user1071138

Reputation: 666

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

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?

Upvotes: 3

Views: 11166

Answers (1)

Raghav Sood
Raghav Sood

Reputation: 82563

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.

Upvotes: 4

Related Questions