Code example for PreferenceScreen

Methods: bind

0
    private void bindPreferences() { 
        final PreferenceScreen preferenceScreen = getPreferenceScreen();
        if (preferenceScreen != null) {
        	try { 
        		if (lv == null) lv = getListView();
        		preferenceScreen.bind(lv);
        	} catch (Exception e) {        		
        	} 
        } 
    } 
     
    /** 
     * Creates the {@link PreferenceManager}. 
     *  
     * @return The {@link PreferenceManager} used by this activity. 
     */ 
    private PreferenceManager onCreatePreferenceManager() {
        try{ 
            Constructor<PreferenceManager> c = PreferenceManager.class.getDeclaredConstructor(Activity.class, int.class);
            c.setAccessible(true);
            PreferenceManager preferenceManager = c.newInstance(this.getActivity(), FIRST_REQUEST_CODE);