title: RotateAnimation without duration
body: <p>guys. i have this code (asyncTask) </p>
  
  <p>my animation() function :</p>
  
  <pre><code>public void animation()
          {
          int   currentRotation = 0;
              anim = new RotateAnimation(currentRotation, (360*4),
                      Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,0.5f);
              currentRotation = (currentRotation + 45) % 360;
              anim.setInterpolator(new LinearInterpolator());
              anim.setDuration(4000);// i want rotating without this &lt;------------------
              anim.setFillEnabled(true);
              anim.setFillAfter(true);
              refresh.startAnimation(anim);
          }
  </code></pre>
  
  <p>Can anyone tell me it's possible to do it without <code>anim.setDuration</code> ????
  just only start .. and when  i pressed on button(for example) animation stoped. 
  Please help me.
   Regards, Peter.</p>
  
  <p>final code : </p>
  
  <pre><code> public void animation()
              {
              int   currentRotation = 0;
                  anim = new RotateAnimation(currentRotation, (360*4),
                          Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,0.5f);
                  currentRotation = (currentRotation + 45) % 360;
                  anim.setInterpolator(new LinearInterpolator());
                  anim.setDuration(4000);
                 // anim.setRepeatMode(Animation.INFINITE);
                  anim.setRepeatCount(Animation.INFINITE);
                  anim.setFillEnabled(true);
                  anim.setFillAfter(true);
                  refresh.startAnimation(anim);
              }
  </code></pre>
  
  <p>and somewhere   <code>refresh.clearAnimation();</code> for stop animation 
  it's work perfect for me .. if here some thing wrong - please tell me .. Anyway thanks for the answers :)</p>