Как программно открыть экран категорий системных уведомлений на устройствах Samsung ⇐ Android
-
Anonymous
Как программно открыть экран категорий системных уведомлений на устройствах Samsung
I am using the snip code below to open the system notification categories screen:
Intent settingsIntent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS) .putExtra(Settings.EXTRA_APP_PACKAGE, getPackageName()); startActivity(settingsIntent); It works fine on almost every device. It will open this screen:
Expectation screen
But in Samsung devices, the following activity was shown instead:
Samsung device screen
So, how do I open the notification categories screen on Samsung devices?
Источник: https://stackoverflow.com/questions/781 ... rogrammati
I am using the snip code below to open the system notification categories screen:
Intent settingsIntent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS) .putExtra(Settings.EXTRA_APP_PACKAGE, getPackageName()); startActivity(settingsIntent); It works fine on almost every device. It will open this screen:
Expectation screen
But in Samsung devices, the following activity was shown instead:
Samsung device screen
So, how do I open the notification categories screen on Samsung devices?
Источник: https://stackoverflow.com/questions/781 ... rogrammati
Мобильная версия