Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off notifications of an app programatically on Android

I am developing a package manager application which shows checkboxes to turn off notifications from different applications installed on the Android device.

Turning off notifications of an app from Applications Manager

Since Android 4.1, users can turn off notifications of an app from application manager. Can I turn on/off notifications from an app programatically? Is there an API for doing that?

like image 748
Gopinath Avatar asked Apr 04 '13 18:04

Gopinath


1 Answers

No, you cannot do that from your code. Perhaps on rooted devices you could do some magic, but that shall not really count for wider audience.

like image 64
Marcin Orlowski Avatar answered Sep 23 '22 13:09

Marcin Orlowski