コード例 #1
0
ファイル: LoggingControl.java プロジェクト: seajay/Gaggle
  /*
   * (non-Javadoc)
   *
   * @see android.app.Activity#onResume()
   */
  @Override
  protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();

    // Log.d(TAG, "onResume() called");
    lifePublish.onResume();

    ((GaggleApplication) getApplication()).getGpsLogger().setObserver(this);

    // Restore the toggle to the correct state. FIXME, why doesn't this
    // state get stored automatically by android?
    // Super skanky way to find our possibly not yet existing service
    showLoggingStatus();
  }