title: using shared preferences to store data inside a service?
body: <p>I have tried using the following code but i am getting errors. getSharedPreferences is undefined. Is there is other way to store string value in Intent services and access it inside an activity.</p>
  
  <pre><code>      SharedPreferences prefs = this.getSharedPreferences(
    "com.example.app", Context.MODE_PRIVATE);
  </code></pre>