Really sorry my message was not very detailed. I'm learning Androis and so I confused about a number of things.
PLEASE - download my small sample app from here : http://www.icerge.com/sites/default/files/TriviaQuiz.rar When you start the app you will see the "View Scores" screen, hit the "menu" button and select "settings". The "settings" activity is where the problem is. Now, the nickname EditText is where the problem is. As I understand it, when you enter text and hit return, the code is supposed to check if GAME_PREFERENCES_NICKNAME is set. If it isn't, it is set in the SharedPreferences and if it was previously set output it into the EditText box. So, I enter a nickname and hit return but the text reverts to "INPUT NICKNAME" which was the temporaying in EditText label. Also, when I press menu and settings again, my previous entry is not in the EditText box as I expect it to be. The code is in QuizSettingsActivity.java, the SharedPrefernces information is set in QuizActivity.java and the layout is settings.xml. I would really appreciate your help. I am a bit lost. Thanks. On Nov 2, 9:47 pm, TreKing <[email protected]> wrote: > On Tue, Nov 2, 2010 at 4:34 PM, sisko <[email protected]> wrote: > > The problem is, when I revisit the activity, the EditView never contains > > the text I input the last time. > > What do you mean "when you revisit"? What are the steps involved in the > problem you're seeing? > > > I actually contains the above TextView content and I can't then edit it. > > What TextView? Can't edit what? The EditText or this TextView? > > > I know that's not really clear but does anyone have any ideas to help with > > seting and retrieving shared preferences properly ?? > > Check to make sure your value exists somewhere else in your code and just > write it out to the log to make sure. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

