In Android 6.0/API23 and earlier, the following used to work:
String settingEnabled = android.provider.Settings.Secure.getString(this.getContentResolver(), \"ena
Use this:
Set packageNames = NotificationManagerCompat.getEnabledListenerPackages (context);