Code example for Handler

Methods: hasMessagesobtainMessage

     * <p> 
     * Binding late is preferred as any custom preference types created in 
     * {@link #onCreate(Bundle)} are able to have their views recycled. 
    private void postBindPreferences() { 
        if (mHandler.hasMessages(MSG_BIND_PREFERENCES)) return;
    private void bindPreferences() { 
        final PreferenceScreen preferenceScreen = getPreferenceScreen();
        if (preferenceScreen != null) {
     * Creates the {@link PreferenceManager}. 
     * @return The {@link PreferenceManager} used by this activity. 
Connect your IDE to all the code out there  Get Codota for Java