Code example for PreferenceGroup

Methods: setOrderingAsAdded

0
        mApplicationPrefList.setOrderingAsAdded(false);
    } 
 
    private void refreshCustomApplicationPrefs() { 
        Context context = getActivity();
 
        if (!parsePackageList()) { 
            return; 
        } 
 
        // Add the Application Preferences 
        if (mApplicationPrefList != null) {
            mApplicationPrefList.removeAll();
 
            for (Package pkg : mPackages.values()) {
                try { 
                    PackageInfo info = mPackageManager.getPackageInfo(pkg.name,
                            PackageManager.GET_META_DATA);
                    ApplicationLightPreference pref =
                            new ApplicationLightPreference(context, pkg.color, pkg.timeon, pkg.timeoff);