How to create loading dialogs in Android?

Those dark spinning progress dialogs in the Amazon and Engadget apps - are those standard in Android?


ANSWERS:


It's a ProgressDialog, with setIndeterminate(true).

From

ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "", 
                    "Loading. Please wait...", true);

An indeterminate progress bar doesn't actually show a bar, it shows a spinning activity circle thing. I'm sure you know what I mean :)


Today things have changed a little.

Now we avoid use ProgressDialog to show spinning progress:

enter image description here

If you want to put in your app a spinning progress you should use an Activity indicators:



 MORE:


 ? How to Create a circular progressbar in Android which rotates on it?
 ? Progress Bar with HTML and CSS
 ? How do you create a progress bar when using the "foreach()" function in R?
 ? Angularjs $http and progress bar
 ? Linking third party CSV reader to a progress bar
 ? How to set progressbar background
 ? "Binary XML file android.widget.ProgressBar cannot be cast to android.view.ViewGroup" in progress bar
 ? "Binary XML file android.widget.ProgressBar cannot be cast to android.view.ViewGroup" in progress bar
 ? "Binary XML file android.widget.ProgressBar cannot be cast to android.view.ViewGroup" in progress bar
 ? cannot display progress bar at the time of loading another Activity in Android