Null value when trying to retrieve from other class
<p>somehow my mind is not working and mild fever didn't help.</p>

<p>I have the following code, batteryLevel here shows the correct value - 50.</p>

<pre><code>public class AlarmEventService extends Service {    
    static String batteryLevel; 
    ...
    int level = intent.getIntExtra("level", 0); 
    batteryLevel = String.valueOf(level); 
    Log.i(APP_TAG, batteryLevel);
}
</code></pre>

<p>Why in my outside call when I get value of AlarmEventService.batteryLevel the value is null?</p>

<pre><code>public class AlarmEventReceiverWake extends BroadcastReceiver { 
    ...
    Log.i(APP_TAG, "Battery Level " + AlarmEventService.batteryLevel);
}
</code></pre>
