ProgressBar in Android
<p>Can any one implement a progress bar in this example?</p>

<pre><code>package org.postandget;
import org.postandget.R;

public class main extends Activity {


        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
             for(int i=0;i&lt;1000;i++)
                {
                        System.out.println(i);
                }

                }
 }
</code></pre>

<p>While the loop executing i have to show a progressbar. I have worked on few examples, but nothing got right. Can any one help me?</p>
