title: implement a spinning activity indicator similar to iOS in Android
body: <p>I am trying to implement the spinning activity similar to the the one I have placed below in Android. I believe I should use the ProgressDialog. My issue arises from how to actually manipulate the ProgressDialog to appear like the activity indicator.</p>
  
  <p>Any thoughts are welcome. A link to an example would even be better. </p>
  
  <p>Thanks.
  <img src="https://i.stack.imgur.com/0iq1w.gif" alt="enter image description here"></p>
  
  <p>REEDIT:</p>
  
  <p>myProgress.java</p>
  
  <pre><code>public class myProgress extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      ProgressDialog d = (ProgressDialog)findViewById(R.id.progres);
  </code></pre>
  
  <p>main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/progres"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:gravity="center"
  &gt;
  &lt;ProgressBar  
      android:id="@+id/progressBar"
      android:indeterminate="true" 
      style="?android:attr/progressBarStyleLarge"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true" 
  /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>