Esempio n. 1
0
  @Override
  protected void onPause() {
    //
    super.onPause();

    mSoundPool.release();

    mResumeClock = true;
  }
Esempio n. 2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    //
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_game_new);

    m_SharedPreferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext());

    initializeVariables();

    mClockSound = MediaPlayer.create(this, R.raw.clock);
    mClockSound.setLooping(true);

    mExtras = getIntent().getExtras();
    mCurrentGameType = mExtras.getInt(EXTRA_GAME_TYPE);
    mUserId = mExtras.getInt(EXTRA_GAME_USER_ID);

    showInstructions();
  }
Esempio n. 3
0
  @Override
  protected void onResume() {
    //
    super.onResume();

    loadSoundPool();

    // checking if to show the report question button
    if (m_SharedPreferences.getBoolean("checkBoxPreferenceShowReportQuestion", true)) {

      buttonReportMistakeInQuestion.setVisibility(View.VISIBLE);
    } else {
      buttonReportMistakeInQuestion.setVisibility(View.GONE);
    }

    if (mResumeFromHelp) {
      mResumeClock = false;
      mResumeFromHelp = false;
    }

    if (mResumeClock) {}
  }