package unknownmoon.cryforlight;


import android.app.Fragment;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.util.Log;


/**
 * A simple {@link Fragment} subclass.
 */
public class SettingsLightFragment extends PreferenceFragment {


    public SettingsLightFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        addPreferencesFromResource(R.xml.preferences_light);

        Log.d("LF:", "1");
    }
}

package unknownmoon.cryforlight;


import android.app.Fragment;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.util.Log;


/**
 * A simple {@link Fragment} subclass.
 */
public class SettingsLightFragment extends PreferenceFragment {


    public SettingsLightFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        addPreferencesFromResource(R.xml.preferences_light);
    }
}

Clean up