title: Checking Android System Security Notification Access setting programmatically
body: <p>Is there a way to check whether the below setting is enabled or disabled programmatically in Android?</p>
  
  <pre><code>Settings &gt; Security &gt; Device Administration &gt; Notification Access &gt; My App 
  </code></pre>
  
  <p>Currently I'm invoking the settings dialog from my app through the below method but if the settings are already enabled then I dont want to present this settings.</p>
  
  <pre><code>Intent intent = new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS");
  startActivity(intent);
  </code></pre>