android:如何在棒棒糖上以编程方式打开请勿打扰模式

时间:2017-02-14 05:17:59

标签: android android-5.0-lollipop

我已经查过了 this question我在那里找到了解决方案。

NotificationManager mNotificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
    mNotificationManager.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE);

但它适用于“棒棒糖以上”版本。任何人都可以告诉我我将如何控制请勿打扰设置,如切换它们,仅在警报之间切换,仅限优先级,完全静音。

0 个答案:

没有答案
相关问题