public override void OnDestroy()
        {
            base.OnDestroy();

            PreferenceManagerCompat.DispatchActivityDestroy(mPreferenceManager);
            ActivityDestroy();
        }
        /**
         * Sets the root of the preference hierarchy that this fragment is showing.
         *
         * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy.
         */

        public void SetPreferenceScreen(PreferenceScreen preferenceScreen)
        {
            if (PreferenceManagerCompat.SetPreferences(mPreferenceManager, preferenceScreen) && preferenceScreen != null)
            {
                mHavePrefs = true;
                if (mInitDone)
                {
                    PostBindPreferences();
                }
            }
        }
		public MyInvocationHandler (PreferenceManagerCompat.IOnPreferenceTreeClickListener listener)
		{
			_listener = listener;
		}
 public override void OnCreate(Bundle paramBundle)
 {
     base.OnCreate(paramBundle);
     mPreferenceManager = PreferenceManagerCompat.NewInstance(Activity, FIRST_REQUEST_CODE);
     PreferenceManagerCompat.SetFragment(mPreferenceManager, this);
 }
        /**
         * Inflates the given XML resource and adds the preference hierarchy to the current
         * preference hierarchy.
         *
         * @param preferencesResId The XML resource ID to inflate.
         */
        public void AddPreferencesFromResource(int preferencesResId)
        {
            RequirePreferenceManager();

            SetPreferenceScreen(PreferenceManagerCompat.InflateFromResource(mPreferenceManager, Activity, preferencesResId, PreferenceScreen));
        }
        /**
         * Adds preferences from activities that match the given {@link Intent}.
         *
         * @param intent The {@link Intent} to query activities.
         */
        public void AddPreferencesFromIntent(Intent intent)
        {
            RequirePreferenceManager();

            SetPreferenceScreen(PreferenceManagerCompat.InflateFromIntent(mPreferenceManager, intent, GetPreferenceScreen()));
        }
 /**
  * Gets the root of the preference hierarchy that this fragment is showing.
  *
  * @return The {@link PreferenceScreen} that is the root of the preference
  *         hierarchy.
  */
 public PreferenceScreen GetPreferenceScreen()
 {
     return(PreferenceManagerCompat.GetPreferenceScreen(mPreferenceManager));
 }
 public override void OnActivityResult(int requestCode, int resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     PreferenceManagerCompat.DispatchActivityResult(mPreferenceManager, requestCode, resultCode, data);
 }
 public override void OnStop()
 {
     base.OnStop();
     PreferenceManagerCompat.DispatchActivityStop(mPreferenceManager);
     //FIXME PreferenceManagerCompat.SetOnPreferenceTreeClickListener (mPreferenceManager, null);
 }