If you think the Android project lightbox-android-webservices listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Copyright (c) 2012 Lightbox/*www.java2s.com*/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package com.lightbox.android.utils.debug;
import android.content.res.Configuration;
import android.os.Bundle;
import com.lightbox.android.lifecycle.LifeCycleListener;
import com.lightbox.android.lifecycle.ManagedLifeCycleActivity;
/**
* Simple {@link LifeCycleListener} that logs every call to a life cycle method.
* @author Fabien Devos
*/publicclass DebugLifeCycleListener extends LifeCycleListener {
/** Used to tag logs *///@SuppressWarnings("unused")
privatestaticfinal String TAG = "DebugLifeCycleListener";
@Override
protectedvoid onCreate(ManagedLifeCycleActivity activity, Bundle savedInstanceState) {
DebugLog.d(TAG, "onCreate()");
}
@Override
protectedvoid onContentChanged(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onContentChanged()");
}
@Override
protectedvoid onRestoreInstanceState(ManagedLifeCycleActivity activity, Bundle savedInstanceState) {
DebugLog.d(TAG, "onRestoreInstanceState()");
}
@Override
protectedvoid onStart(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onStart()");
}
@Override
protectedvoid onResume(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onResume()");
}
@Override
protectedvoid onConfigurationChanged(ManagedLifeCycleActivity activity, Configuration newConfig) {
DebugLog.d(TAG, "onConfigurationChanged()");
}
@Override
protectedvoid onPause(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onPause()");
}
@Override
protectedvoid onSaveInstanceState(ManagedLifeCycleActivity activity, Bundle outState) {
DebugLog.d(TAG, "onSaveInstanceState()");
}
@Override
protectedvoid onStop(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onStop()");
}
@Override
protectedvoid onDestroy(ManagedLifeCycleActivity activity) {
DebugLog.d(TAG, "onDestroy()");
}
}