What is the intention to open DND settings?

I'm sure I'm missing something in Settings. What Intentcan open the Settings application in the Do Not Disturb section?

I expected this to be an action ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS, but it is only for a screen that lists which applications requested access to DND.

+4
source share
2 answers

It seems that there are no screens in the Settings app (at least on Android 6 + 7), where you can enable / disable the Do Not Disturb mode. It seems that this is only available using the settings tile (and can be turned off in the dialog box when changing the volume).

Samsung S6 (Android 6.0.1), , , , Samsung. com.android.settings.Settings$ZenModeDNDSettingsActivity, . .

AndroidManifest.xml Android 6 + 7:

+2

Intent: ACTION_VOICE_CONTROL_DO_NOT_DISTURB_MODE, boolean EXTRA_DO_NOT_DISTURB_MODE_ENABLED.

, : This intent MUST be started using startVoiceActivity.

+2

Source: https://habr.com/ru/post/1655200/


All Articles