private void initPreferences() { boolean soundOn = Pref.getSoundOn(this); SomUtil.SOM_ON = soundOn; String controlMode = Pref.getControlMode(this); Controle.ON = "touch".equals(controlMode); AccelerometerManager.ON = "sensor".equals(controlMode); }
@Override protected void onPause() { super.onPause(); if (gameView != null) { int fase = gameView.fase; Pref.setFase(this, fase); } SomUtil.pause(); // log("onPause() SomUtil.close() OK."); }