Trying to read preferences upon BOOT_COMPLETED
<p>I am setting an alarm from my app, and when rebooting, I see I need to reset the alarm since it does not survive reboots. I created a broadcast receiver to receive BOOT_COMPLETED and this works so my manifest must be correct.</p>

<p>When I try this line of code below I get in trouble. I need to retrieve the time that I need to set the alarm to but it looks like I cannot access the prefs of my app (called S) because my app has never started. <code>NullPointerException</code> :</p>

<pre><code>if ( S.prefs.getBoolean(S.SCHEDULEDSTATUS, false) == true ) { }
</code></pre>

<p>I suppose it should be obvious that I cannot read a public static final of an activity that has not been created.</p>

<p>Do I have to store my alarm time in a file or am I missing something here?</p>
