@Override
    protected void onStart() {
        super.onStart();
        // Start logging to UI.
        initializeLogging();

        Log.d(mLogTag, "onStart");
    }
Activity that logs all key lifecycle callbacks to {@link Log}.
Output is also logged to the UI into a {@link LogFragment} through {@link #initializeLogging()}
and {@link #stopLogging()}.
MultiWindowPlayground/Application/src/main/java/com/android/multiwindowplayground/activities/LoggingActivity.java