public PreferenceScreen inflateFromResource(Context context,int resId,PreferenceScreen rootPreferences){
  setNoCommit(true);
  final PreferenceInflater inflater=new PreferenceInflater(context,this);
  rootPreferences=(PreferenceScreen)inflater.inflate(resId,rootPreferences,true);
  rootPreferences.onAttachedToHierarchy(this);
  setNoCommit(false);
  return rootPreferences;
}

public PreferenceScreen inflateFromResource ( Context context , int resId , PreferenceScreen rootPreferences ) { setNoCommit ( true ) ; final PreferenceInflater inflater = new PreferenceInflater ( context , this ) ; rootPreferences = ( PreferenceScreen ) inflater . inflate ( resId , rootPreferences , true ) ; rootPreferences . onAttachedToHierarchy ( this ) ; setNoCommit ( false ) ; return rootPreferences ; }
inflates a preference hierarchy from xml . if a preference hierarchy is given , the new preference hierarchies will be merged in .
