Getting value from preferences?
<p>I have one check box in preferences and I get value</p>

<pre><code>SharedPreferences myPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
</code></pre>

<p>my check box from preferences is checked by default and I'm using this</p>

<pre><code>if(myPreferences.getBoolean("checkbox", false) == true)
</code></pre>

<p>to check if user change check box state. If condition from above is true I'll get notification in status bar(I will not present code for notification and service).
So, my problem is that I'm not getting notification until I click on preferences, then finally my PreferenceManager get value from check box and my notification trigger.
How can I fix that?
Thanks, Wolf.</p>
