You should also check out this handy method:

PreferenceManager.setDefaultValues(Context context, int resId, boolean
readAgain)

Assuming you've defined default values for preferences in your
preferences.xml file, this method will use those to initialize your
saved preferences file. Which means you shouldn't have to define
default values in your code. Which is nice.

- dave
www.androidbook.com

On Sep 30, 9:41 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Sep 30, 2010 at 9:15 PM, rb <rbs...@gmail.com> wrote:
> > I looked at the URL's that you provided and tried some coding with it,
> > but I am failing to understand
> > the proper coding methods.
>
> BTW, the preference chapter in my book has not changed that much from
> earlier editions, so you're welcome to read the relevant chapter in
> the most recent Creative Commons edition:
>
> http://commonsware.com/Android/Android-1_4-CC.pdf
>
> That should give you more context for all of this preference stuff.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Atlanta:http://bignerdranch.com/classes/android

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to