Thank Mark... as always your advice is exactly what I needed. :)
By the way, I just downloaded the 1.9 version of your book (wondered what happened to 1.5... 1.8 but that's another question), and it is even better than it was... except for one thing.... That's a god awful color of green.... The red/maroon color you had before was much nicer :). But.... I guess if that's the biggest complaint I've got about the book that pretty well says it all :). I hope you're doing well with it. To be honest, I've gotten about ten times my moneys' worth from the book in free advice on this list from you, so if I make money from my app, I'll buy a few copies of it for some other developers ;). Sincerely, Brad Gies ----------------------------------------------------------------- Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 www.bgies.com www.truckerphone.com www.EDI-Easy.com www.pricebunny.com ----------------------------------------------------------------- Moderation in everything, including abstinence -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Murphy Sent: Friday, December 05, 2008 2:12 PM To: [email protected] Subject: [android-developers] Re: getSharedPreferences Brad Gies wrote: > Can someone clarify how to use getSharedPreferences*(String > <http://code.google.com/android/reference/java/lang/String.html> name, > int mode) * ? > > I have created a preferences.xlm file, added some Boolean preferences, > can edit them from an activity, but I can't seem to figure out how to > get the values into another activity in my application using > getSharedPreferences. > > I know. it should be simple. and I'm sure it is. but I can't figure out > what name to put in or what mode. > > Any help or links to sample code appreciated. Use PreferencesManager.getDefaultSharedPreferences() instead. This will return the SharedPreferences object that lines up with the preference screen system. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

