Exemplo n.º 1
0
  /**
   * 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();
  }
Exemplo n.º 2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
   prefs.registerOnSharedPreferenceChangeListener(this);
 }