Repeat statement for infinite times using loop?
<p>I want to print like:</p>

<pre><code>for(int i=0;i&lt;should be infinite;i++)
{
    Data is Loading.
    sleep(100);
    Data is Loading..
    sleep(100);
    Data is Loading... 
    sleep(100);
}
</code></pre>

<p>below is  the  code  its not  working</p>

<pre><code>package com.queen.a01_simple_request;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
TextView textView;
Button button;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    textView = (TextView) findViewById(R.id.textView);
    button = (Button) findViewById(R.id.button);

    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            for (; ; ) {
                try {
                    textView.setText("Downloading The File");
                    Thread.sleep(1000);
                    textView.setText("Downloading The File.");
                    Thread.sleep(1000);
                    textView.setText("Downloading The File..");
                    Thread.sleep(1000);
                    textView.setText("Downloading The File...");
                    Thread.sleep(1000);

                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    });
}
</code></pre>

<p>}</p>

<p>Now, this should loop for infinite. The dots should change one after another forever. I dont want to set value like i&lt;1000. I want to implement this.</p>