Question: I have chef-solo installed on ubuntu(12.04). I have been able to successfully install eclipse using the cookbook provided in the following site: <https://github.com/geocent-cookbooks/eclipse>.

Now i wish to add the ***pydev plugin*** to this using chef-solo. Can someone help me on how i can do this. Do i need a new cookbook (if yes then where can i find the cookbook) or is some editing required in the existing eclipse cookbook(if yes then what is it)?

I am new to chef. Please help
Thank you

Answer: 
```
public class MainActivity extends ActionBarActivity  implements OnClickListener, AnimationListener {

private Animation animation1;
private Animation animation2;
int current = 0;
int[] imageViewIds ={R.id.imageView1,R.id.imageView2,R.id.imageVie3,R.id.imageView4,R.id.imageView5,R.id.imageView6};
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ActionBar bar = getActionBar();
    bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#FF0000")));

    animation1 = AnimationUtils.loadAnimation(this, R.anim.to_middle);
    animation1.setAnimationListener(this);
    animation2 = AnimationUtils.loadAnimation(this, R.anim.from_middle);
    animation2.setAnimationListener(this);

   playLoopingAnimations();
}

playLoopingAnimations();
{
    ((ImageView)findViewById(imageViewIds[current])).clearAnimation();
    ((ImageView)findViewById(imageViewIds[current])).setAnimation(animation1);
    ((ImageView)findViewById(imageViewIds[current])).startAnimation(animation1);
}

@Override
public void onAnimationEnd(Animation animation) 
{
  current++;
  if(current==imageViewIds.lenghth())
  current=0;
  playLoopingAnimations();
}

@Override
public void onAnimationRepeat(Animation animation) 
{

}

@Override
public void onAnimationStart(Animation animation) 
{

}

}

```

I think this set-up can be modified a bit more to hit the nail on its head!
You can use class `CountdownTimer`.

The first parameter is how many milliseconds the timer should run, the second is how many milliseconds is one *Tick*.
`onTick` executes every time 1 *Tick* is completed and `onFinish` executes when the countdown finishes.

I think you can use this creatively to achieve your result.

CountdownTimer timer = new CountDownTimer(2000, 1000) {

```
            public void onTick(long millisUntilFinished) {
               //Do something every tick
            }

            public void onFinish() {

               //Do something when timer finishes
            }
         }.start();

```