Example #1
0
 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);
 }
Example #2
0
  @Override
  protected void onPause() {
    super.onPause();

    if (gameView != null) {
      int fase = gameView.fase;
      Pref.setFase(this, fase);
    }

    SomUtil.pause();
    //		log("onPause() SomUtil.close() OK.");
  }