【问题标题】:Is it possible to turn on/off notification from different applications programatically on android是否可以在android上以编程方式打开/关闭来自不同应用程序的通知
【发布时间】:2015-10-29 13:03:31
【问题描述】:

是否可以通过编程方式打开/关闭通知,例如“显示通知”?

这样检查:设置->应用程序->单击列表中的任何应用程序->显示通知

我可以通过编程方式打开/关闭应用的通知吗?

【问题讨论】:

  • 这已经被问过好几次了,比如herehere。请在发布问题之前进行搜索。

标签: android notifications system


【解决方案1】:

这是可能的,是的。

但是……为什么?

你需要give your app root privileges不推荐。你必须learn how to modify system settingsupdate notifications status

【讨论】:

  • 原因有很多,但这里有一个......当我在工作时,我正在为我的雇主开发应用程序,我不希望我所有的 Facebook、SMS 和 WhatsApp 通知/消息不断弹出。很好地定位我在工作中的地理位置并应用我需要的那个环境的通知设置。
猜你喜欢
  • 2013-03-27
  • 1970-01-01
  • 2017-08-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多