-4

Is it possible to turn on/off notification like "Show notifications" for programmatically?

Check this way : Settings->APps->Click on any app from a list-> Show notifications

Can I turn on/off notifications from an app programatically?

Shreyans Patel
  • 129
  • 1
  • 10
  • 3
    This has already been asked several times, like [here](http://stackoverflow.com/questions/15819249/turn-off-notifications-of-an-app-programatically-on-android) and [here](http://stackoverflow.com/questions/17667406/programmatically-disabling-enabling-notifications). Please do a search before posting questions. – Sebastian Aug 06 '15 at 11:40

1 Answers1

2

It is posible, yes.

But... why?

You need to give your app root privileges which is not recommended. You will have to learn how to modify system settings and update notifications status

Community
  • 1
  • 1
Jordi Castilla
  • 26,609
  • 8
  • 70
  • 109
  • 2
    Many reasons but here is one.. when I'm at work I'm doing App development for my employer I dont want all my Facebook, SMS and WhatsApp notifications/messages constantly popping up. Would be great to geolocate that Im at work and apply the notification settings that I need for that environment. – Michael Fever Oct 07 '17 at 19:25