Google

Sunday, July 11, 2010

How to use Android Log



Create ViewAnimationListener.java class:

 package com.ava;
import android.util.Log;
import android.view.animation.Animation;
public class ViewAnimationListener implements Animation.AnimationListener {
public ViewAnimationListener() {
}
public void onAnimationStart(Animation animation) {
Log.d("Animation Example", "onAnimationStart");
}
public void onAnimationEnd(Animation animation) {
Log.d("Animation Example", "onAnimationEnd");
}
public void onAnimationRepeat(Animation animation) {
Log.d("Animation Example", "onAnimationRepeat");
}
}