This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Android and the fly likes SharedPreference not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "SharedPreference not working" Watch "SharedPreference not working" New topic
Author

SharedPreference not working

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1240
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

Joined: Jan 30, 2010
Posts: 252
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: SharedPreference not working
 
It's not a secret anymore!