Gotcha. I'm trying to do this in onSharedPreferenceChanged(), but I
can't seem to get it to hit.

public class Settings extends PreferenceActivity implements
OnSharedPreferenceChangeListener  {
        public static final String PREFS_NAME = "com.myapp.app_preferences";

        @Override
        public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
                settings = getSharedPreferences(PREFS_NAME, 0);

                addPreferencesFromResource(R.layout.settings);

        }

        public void onSharedPreferenceChanged(SharedPreferences
sharedPreferences, String key) {
                Log.v("changed", key);
        }

Why am I not seeing this hit when I change the preference?

Thanks again!

On Feb 5, 3:56 am, Chander Pechetty <[email protected]> wrote:
> <DialogPreference
>             android:key="yourdialogkey"
> .....
> ...</DialogPreference>
>
> In your PreferenceActivity class, just call
>  Preference dialogPref = findPreference(yourdialogkey);
>
> Get the dialog Layout if you are using a custom View or call one of
> the SetMessage methods.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to