@Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        Log.d(mLogTag, "onConfigurationChanged: " + newConfig.toString());
    }
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