getPreferences(MODE_PRIVATE) is undefined in BroadcastReceiver
<p>I have application with an activity and a service, I need to save some value in the activity and retrieve in the service.</p>

<p>i could save the value using  SharedPreferences in the activity, however,  when I try to retrieve the value in the BroadcastReceiver, it says  <strong>getPreferences is undefined for service.</strong></p>

<p><strong>how could I retrieve my value in BroadcastReceiver?</strong>  </p>
