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.
SharedPreferences prefs = this.getSharedPreferences(
"com.example.app", Context.MODE_PRIVATE);
try this :
instead of