@Override
  protected void onPause() {
    super.onPause();
    /*
     * When the activity is paused, we make sure to stop the simulation,
     * release our sensor resources and wake locks
     */

    // Stop the simulation
    mSimulationView.stopSimulation();

    // and release our wake-lock
    mWakeLock.release();
  }