How can i make disable Notification in preference in android
<p>How can i make disable Notification in preference in android?(if the user do not like the see the notification but the notification still in the app) i already doing check Box in xml</p>

<pre><code>      &lt;CheckBoxPreference 
      android:title="Disable Notification"
      android:defaultValue="true"
      android:key="checkbox"
      android:summary="Check the Box"/&gt;
</code></pre>

<p>but i do not know what is the code to disable Notification, Thank you in advance !</p>
