On Aug 25, 2011, at 11:33 AM, Stuart Johnson wrote:
> I'm trying to get PreferenceActivity show the current values, and I
> found this on Stack Overflow.

They're using the 
android.content.SharedPreferences.OnSharedPreferenceChangeListener interface:

        
http://developer.android.com/reference/android/content/SharedPreferences.OnSharedPreferenceChangeListener.html

This is mapped to the 
Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener interface:

        
http://docs.mono-android.net/index.aspx?link=T%3aAndroid.Content.ISharedPreferencesOnSharedPreferenceChangeListener

For example:

        [Activity]
        class AdvancedPreferences : Android.Preferences.PreferenceActivity,
                
Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener
        {
                public void OnSharedPreferenceChanged (ISharedPreferences 
sharedPreferences, string key)
                {
                        // ...
                }
        }

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to