package net.indivia.hacklabbo.statusreader;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class PrefScreen extends PreferenceActivity {
	private static final String LOG_TAG = "PreferenceScreenActivity";
	private static Context ctx;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        extracted();
        ctx = getApplicationContext();
        
        SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
        prefs.registerOnSharedPreferenceChangeListener(mListener);
    }

	private void extracted() {
		addPreferencesFromResource(R.xml.prefs);
	}
    
    public OnSharedPreferenceChangeListener mListener = new OnSharedPreferenceChangeListener() {        
        @Override
        public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
        }
    };
}
