/** * Create the Settings activity. Retrieve the initial option values (MidiOptions) from the Intent. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(android.R.style.Theme_Holo_Light); getWindow().getDecorView().setBackgroundColor(Color.WHITE); // getListView().setBackgroundColor(Color.TRANSPARENT); // getListView().setCacheColorHint(Color.TRANSPARENT); setTitle("ECML: Settings"); options = (MidiOptions) this.getIntent().getSerializableExtra(settingsID); defaultOptions = (MidiOptions) this.getIntent().getSerializableExtra(defaultSettingsID); createView(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); prefs.registerOnSharedPreferenceChangeListener(this); }