Пример #1
0
  @Override
  protected void onPause() {
    Log.d(TAG, ".onPause() entered");
    super.onPause();

    // unregister
    unregisterReceivers();

    // unregister current activity inside our application class
    app.setCurrentRunningActivityEmpty();
  }
Пример #2
0
  @Override
  protected void onResume() {
    Log.d(TAG, ".onResume() entered");
    super.onResume();

    // register coordinatesChangedBroadcastReceiver
    registerReceivers();

    // setup google map layout
    setUpMapIfNeeded();

    // register current activity as a running activity inside our application class
    app.setCurrentRunningActivity(TAG);
  }