Code example for PreferenceScreen

Methods: bind

0
 
    private void bindPreferences() { 
        try { 
            final PreferenceScreen preferenceScreen = getPreferenceScreen();
            if (preferenceScreen != null) {
                preferenceScreen.bind(this.mListView);
            } 
        } catch (Exception e) {
            throw new RuntimeException(e);
        } 
    } 
 
    private void dispatchActivityDestroy() { 
        try { 
            Method m = PreferenceManager.class.getDeclaredMethod("dispatchActivityDestroy");
            m.setAccessible(true);
            m.invoke(mPreferenceManager);
        } catch (Exception e) {
            throw new RuntimeException(e);
        } 
    }