Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SharedPreference not working

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my main class


When i run the programm it is working fine.But when i stop the programm and again run it doesn't show me saved value for sharedpreference ?
where is the error ?
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to create shared preference in a different way...

http://saigeethamn.blogspot.com/2009/10/shared-preferences-android-developer.html

Try tutorial from above link.


Or attach source code. I will correct it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic